MAN page from RedHat 6.X shadow-utils-980403-12.i386.rpm
Section: Maintenance Commands (8)
Updated: 26 Sep 1997Index
pwconv, pwunconv, grpconv, grpunconv - convert to and from shadow passwords and groups.
These four programs all operate on the normal and shadow password andgroup files:/etc/passwd
, and /etc/gshadow
pwconvcreates shadow from passwd and an optionally existing shadow.pwunconvcreates passwd from passwd and shadow and then removes shadow.grpconvcreates gshadow from group and an optionally existing gshadow.grpunconvcreates group from group and gshadow and then removes gshadow.
Each program acquires the necessary locks before conversion.
pwconv and grpconvare similiar. First, entries in the shadowed file which don't existin the main file are removed. Then, shadowed entries which don't have`x' as the password in the main file are updated. Any missingshadowed entries are added. Finally, passwords in the main file arereplaced with `x'. These programs can be used for initial conversionas well to update the shadowed file if the main file is edited byhand.
pwconvwill use the values ofPASS_MIN_DAYS, PASS_MAX_DAYS, and PASS_WARN_AGEfrom/etc/login.defswhen adding new entries to/etc/shadow.
Likewise, pwunconv and grpunconvare similiar. Passwords in the main file are updated from theshadowed file. Entries which exist in the main file but not in theshadowed file are left alone. Finally, the shadowed file is removed.
Some password aging information is lost bypwunconv.It will convert what it can.
- SEE ALSO
This document was created byman2html,using the manual pages.