Operating System - HP-UX
1753695 Members
5851 Online
108799 Solutions
New Discussion юеВ

/etc/passwd file shows encrypted password

 
SOLVED
Go to solution
Amitav
Frequent Advisor

/etc/passwd file shows encrypted password

Hi Gurus,

One of my trusted hp-ux 11.11 server, the user root shows encrypted password instead of *.
Tried the following:
unlocked the user by passwd -l root
then, cat /etc/passwd | grep root | sed 's/e94xsM0XKbu4E/*/' >/etc/passwd.new

But this didn't work, as i got error in the sed function. What needs to be done so that my /etc/passwd file should show an asterik mark on the password field of the user "root", and simultaneously the root user should able to login & work as well.
3 REPLIES 3
TTr
Honored Contributor
Solution

Re: /etc/passwd file shows encrypted password

If you are trying to change the password file, use the vipw command and put an asterisk in the password field.

After making the change do not logout from the server. Stay logged in and try to login in a new session from a different server or terminal so that you can test the changes.

If you are unable to login in the new session, go back to the old session and undo the changes. This means that something is wrong with your trusted system environment.
Amitav
Frequent Advisor

Re: /etc/passwd file shows encrypted password

that worked...thanks for your assitance
Amitav
Frequent Advisor

Re: /etc/passwd file shows encrypted password

It worked as per TTr.