: I was trying to add a user to the /etc/passwd file. I added the record to my
: file (after carefully making a backup of course). I then made the directory,
: but forgot to set the password. I logged out (from root) and now I can't log
: in again, under anything. Previously I didn't have a password for root since
: I was just setting up, but using the root login asks me for one now. Any clues
: on how to rebuild the file without reinstalling 55+ disks? BTW, it's the
: newest version of Slackware with pretty much all of the disks. Thanks...
Use your boot & root disks, you will now login as root without a password.
Now you must mount the partition which has /etc on it.
Like: mount -t <filesystem, eg ext2> /dev/<partition> /mnt
After this you go to dir /mnt/etc and either you copy the initial passwd file
from /etc to /mnt/etc or you edit /mnt/etc/passwd and delete the encrypted
password for root (leave the colons) or you copy /mnt/etc/<your_backup> to
/mnt/etc/passwd (I would use the first or third option).
After this you should be able to login as root again.
And it's easier to add a user with 'adduser', this will do everything
for you.
: Jon Vielhaber
Regards, Danny Grotenhuis.
--