diff --git a/ChangeLog b/ChangeLog index 9f9714db..8e6c1c5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-05-07 Nicolas François + + * man/chpasswd.8.xml: Describe how chpasswd in case of error. + * man/chpasswd.8.xml: Describe the PAM enabled chpasswd behavior. + * man/chpasswd.8.xml: Differentiate the files and configurations + needed for PAM and non PAM versions. + 2009-05-07 Nicolas François * src/login.c: failcount does not need to be signed. diff --git a/man/chpasswd.8.xml b/man/chpasswd.8.xml index 5e65a016..03be8b55 100644 --- a/man/chpasswd.8.xml +++ b/man/chpasswd.8.xml @@ -67,6 +67,7 @@ user_name:password + By default the supplied password must be in clear-text, and is encrypted by chpasswd. @@ -78,6 +79,26 @@ and can be overwiten with the , , or options. + + chpasswd first update the password in memory, + and then commit all the changes to disk if no errors occured for + any users. + + + + + The supplied passwords must be in clear-text. + + + PAM is used to update the password in the system database + according to the PAM chpasswd configuration. + + + When chpasswd fails to update a password, it + continues updating the passwords of the next users, and will + return an error code on exit. + + This command is intended to be used in a large system environment where many accounts are created at a single time. @@ -91,6 +112,14 @@ are: + + , + + Display help message and exit. + + + + , @@ -110,12 +139,6 @@ Supplied passwords are in encrypted form. - - , - - Display help message and exit. - - , @@ -159,15 +182,9 @@ Remember to set permissions or umask to prevent readability of unencrypted files by other users. - - PAM is not used to update the passwords. - Only /etc/passwd and - /etc/shadow are updated, and the various checks - or options provided by PAM modules are not used. - - + CONFIGURATION The following configuration variables in @@ -184,24 +201,30 @@ FILES - + /etc/passwd User account information. - + /etc/shadow Secure user account information. - + /etc/login.defs Shadow password suite configuration. + + /etc/pam.d/chpasswd + + PAM configuration for chpasswd. + + @@ -214,11 +237,11 @@ newusers8 , - - useradd8 + + login.defs5 , - login.defs5 + useradd8 .