pwconv man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

PWCONV(1M)							    PWCONV(1M)

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

SYNOPSIS
       pwconv

DESCRIPTION
       The pwconv command creates and  updates	/etc/shadow  with  information
       from /etc/passwd.

       pwconv  relies  on  a  special  value  of  'x' in the password field of
       /etc/passwd. This value of 'x' indicates that the password for the user
       is already in /etc/shadow and should not be modified.

       If  the	/etc/shadow  file  does	 not  exist,  this command will create
       /etc/shadow with information from /etc/passwd.  The  command  populates
       /etc/shadow  with  the  user's login name, password, and password aging
       information.  If	 password  aging  information  does   not   exist   in
       /etc/passwd for a given user, none will be added to  /etc/shadow.  How‐
       ever, the last changed information will always be updated.

       If the  /etc/shadow file does exist, the following tasks will  be  per‐
       formed:

	   Entries   that  are	in  the	  /etc/passwd  file  and  not  in  the
	   /etc/shadow file will be added to the /etc/shadow file.

	   Entries  that  are  in  the	 /etc/shadow  file  and	 not  in   the
	   /etc/passwd file will be removed from /etc/shadow.

	   Password  attributes	 (for example, password and aging information)
	   that exist in an /etc/passwd entry will be moved to the correspond‐
	   ing entry in /etc/shadow.

       The pwconv command can only be used by the super-user.

FILES
       /etc/opasswd

       /etc/oshadow

       /etc/passwd

       /etc/shadow

SEE ALSO
       passwd(1), passmgmt(1M), usermod(1M), passwd(4), attributes(5)

DIAGNOSTICS
       pwconv exits with one of the following values:

       0
	    SUCCESS.

       1
	    Permission denied.

       2
	    Invalid command syntax.

       3
	    Unexpected failure.	 Conversion not done.

       4
	    Unexpected failure.	 Password file(s) missing.

       5
	    Password file(s) busy.  Try again later.

       6
	    Bad entry in /etc/shadow file.

				  Mar 9, 1993			    PWCONV(1M)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net