1834206 Members
1987 Online
110066 Solutions
New Discussion

etc/passwd file

 
SOLVED
Go to solution
Markius Pettaway
New Member

etc/passwd file

HELP!! I EDITED MY ETC/PASSWD FILE AND NOW MY ROOT PASSWORD NO LONGER WORKS. HOW DO I RESET MY ROOT PASSWORD??
5 REPLIES 5
Jannik
Honored Contributor

Re: etc/passwd file

boot into sicleuser mode!
and then edit you password file see recover root password.
jaton
Steve Steel
Honored Contributor

Re: etc/passwd file

Hi


1)reboot in single user mode

interrupt reboot
interact isl

hp-us -is

no passwd needed

reset it


2)If you are logged in as root

/usr/newconfig/etc contains a basic passwd file.

save old and put that in place

Or eit again and remove the field passwd for root


3)Do you have a .rhosts file in the root home where you can login withjout passwd from other box


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
MarkSyder
Honored Contributor

Re: etc/passwd file

Alternatively, if you're unable to reboot, did you take a backup copy of the passwd file before editing it? ALWAYS backup any file before editing, especially one as important as passwd.

If not, you could manually edit out the password field of the root entry. You will then be able to log in without a password. Set one immediately - not having a root password is a security risk.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Jannik
Honored Contributor
Solution

Re: etc/passwd file

Muthukumar_5
Honored Contributor

Re: etc/passwd file

Do you have any login sessions out there,if so use #passwd root to change the passwd (it may be happened to have a session there :) )

Else,

Try to login in single user mode and change the passwd ( as said by steve steel )

If you have anymouse ftp login to your machine then copy the /etc/passwd to local machine and remove root:XXXXX: XXXXX entries to boot without passwd. put that file to anymouse remote host now!

If you login it will go without asking anypasswd (NULL Passwd)

If you are having .rhosts or .shosts file then you can make remote (secure) login.

Regards
Muthu
Easy to suggest when don't know about the problem!