Password problem

poorboy

Distinguished
Jan 17, 2002
634
0
18,980
login: root
password:
# passwd

Something like that should do it...

Or if you can't log in, boot a rescue cd, and mount your HDD's / partition. Edit your HDD's /etc/shadow file or (passwd if not using shadow passwords) and remove the second field of root's line, eg root::12242:0:99999:7::: (Leave everything after the colon alone, just remove the second field).

BTW, that kiddies, is why you might want to use boot manager passwords and/or encypted filesystems.


<i>Knock Knock, Neo</i>
 

Dev

Distinguished
Sep 18, 2001
553
0
18,980
If you locked yourself out of the box you can boot to single mode (Runlevel 1) and issue the passwd command.

Dev

---
My Sig:
))
(( ___________________
|||_____________|_____|