MAN page from OpenSuSE pwdutils-3.2.5-2.4.1.x86_64.rpm
Section: Maintenance Commands (8)
Updated: January 2004Index
pwconv - convert to shadow account
- pwconv [-P path]
installs and updates /etc/shadow
with informationfrom /etc/passwd
. It relies on the special password 'x' in thepassword field of the account. This value indicates that the passwordfor the user is already in /etc/shadow
and should not be modified.
If /etc/shadow does not exist, pwconv creates this file,moves the user password to it and creates default aging informationswith the help of the values of PASS_MIN_DAYS, PASS_MAX_DAYSand PASS_WARN_AGE from /etc/login.defs. The password fieldin /etc/passwd is replaced with the special character 'x'.
If the /etc/shadow does exist, entries that are in the/etc/passwd file and not in the /etc/shadow file areadded to the /etc/shadow file. Accounts, which only exist in/etc/passwd, are added to /etc/shadow. Entries thatare in /etc/shadow and not in /etc/passwd are removedfrom /etc/shadow. All passwords from /etc/passwd aremoved to /etc/shadow and replaced with the special character 'x'.
pwconv can be used for initial conversion and for updates later.
- -P, --path path
- The passwd and shadow files are located belowthe specified directory path. pwconv will use this files,not /etc/passwd and /etc/shadow.
passwd - user account information
shadow - shadow user account information
Thorsten Kukuk <kukukAATTsuse.de>
- SEE ALSO
This document was created byman2html,using the manual pages.