Operating System - HP-UX
1752766 Members
5198 Online
108789 Solutions
New Discussion юеВ

Re: how to create password entries in /etc/shadow file from /etc/passwd file

 
Umamaheswara Reddy
Occasional Contributor

how to create password entries in /etc/shadow file from /etc/passwd file

Hi Guys,
Could you please help me with this.

We are freshly installing our HP rx4640 model server to move from HP-UX 11i V2 to HP-UX 11i V3.
After fresh installation, we will restore /etc/passwd file to retain all the old user accounts and
their passwords.In 11i V2,user accounts and their passwords are maintained in a single file /etc/passwd .
But,in V3 passwords are maintained in /etc/shadow file.So please let me know if there is any command
to create password entries for all the accounts in /etc/shadow file after upgrade.


3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: how to create password entries in /etc/shadow file from /etc/passwd file

You don't need to use /etc/shadow if you want to keep what you have.

You might first want to restore /etc/passwd then convert.

Re: how to create password entries in /etc/shadow file from /etc/passwd file

you don't necessarily need to convert /etc/passwd file to /etc/shadow.
However since /etc/passwd is used by different programs of unix it causes a security breach because of its permissions.
Hence we make use of /etc/shadow to ensure security of the passwd.

To convert /etc/passwd to /etc/shadow run the command pwconv ,
this will create the shadow file with the encrypted passwords.
to undo the changes you can run the command
pwunconv.
Hakki Aydin Ucar
Honored Contributor

Re: how to create password entries in /etc/shadow file from /etc/passwd file

After the Shadow Password product has been installed, the pwconv (1M)
command can be run to enable shadow passwords, and the pwunconv
(1M) command can be run to disable shadow passwords.

pwconv - installs and updates /etc/shadow with information from /etc/passwd