HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

/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
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.