]> granicus.if.org Git - shadow/commitdiff
* man/chpasswd.8.xml: Describe how chpasswd in case of error.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 9 May 2009 13:14:56 +0000 (13:14 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 9 May 2009 13:14:56 +0000 (13:14 +0000)
* 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.

ChangeLog
man/chpasswd.8.xml

index 9f9714db42116afe5b9498042a77219fa11bc991..8e6c1c5d927d81e5ad4bae4e713a3f6d173e7243 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-05-07  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * 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  <nicolas.francois@centraliens.net>
 
        * src/login.c: failcount does not need to be signed.
index 5e65a01630768c2a2a6f8c1ace61d44322d2e447..03be8b55208a3afabb14d6af6d7bf9971e86d881 100644 (file)
@@ -67,6 +67,7 @@
       <emphasis remap='I'>user_name</emphasis>:<emphasis
       remap='I'>password</emphasis>
     </para>
+    <refsect2 condition="no_pam">
     <para>
       By default the supplied password must be in clear-text, and is
       encrypted by <command>chpasswd</command>.
       and can be overwiten with the <option>-e</option>,
       <option>-m</option>, or <option>-c</option> options.
     </para>
+      <para>
+       <command>chpasswd</command> first update the password in memory,
+       and then commit all the changes to disk if no errors occured for
+       any users.
+      </para>
+    </refsect2>
+    <refsect2 condition="pam">
+      <para>
+       The supplied passwords must be in clear-text.
+      </para>
+      <para>
+       PAM is used to update the password in the system database
+       according to the PAM chpasswd configuration.
+      </para>
+      <para>
+       When <command>chpasswd</command> fails to update a password, it
+       continues updating the passwords of the next users, and will
+       return an error code on exit.
+      </para>
+    </refsect2>
     <para>
       This command is intended to be used in a large system environment
       where many accounts are created at a single time.
       are:
     </para>
     <variablelist remap='IP'>
+      <varlistentry>
+       <term><option>-h</option>, <option>--help</option></term>
+       <listitem>
+         <para>Display help message and exit.</para>
+       </listitem>
+      </varlistentry>
+    </variablelist>
+    <variablelist remap='IP' condition="no_pam">
       <varlistentry>
        <term><option>-c</option>, <option>--crypt-method</option></term>
        <listitem>
          <para>Supplied passwords are in encrypted form.</para>
        </listitem>
       </varlistentry>
-      <varlistentry>
-       <term><option>-h</option>, <option>--help</option></term>
-       <listitem>
-         <para>Display help message and exit.</para>
-       </listitem>
-      </varlistentry>
       <varlistentry>
        <term><option>-m</option>, <option>--md5</option></term>
        <listitem>
       Remember to set permissions or umask to prevent readability of
       unencrypted files by other users.
     </para>
-    <para>
-      PAM is not used to update the passwords.
-      Only <filename>/etc/passwd</filename> and
-      <filename>/etc/shadow</filename> are updated, and the various checks
-      or options provided by PAM modules are not used.
-    </para>
   </refsect1>
 
-  <refsect1 id='configuration'>
+  <refsect1 id='configuration' condition="no_pam">
     <title>CONFIGURATION</title>
     <para>
       The following configuration variables in
   <refsect1 id='files'>
     <title>FILES</title>
     <variablelist>
-      <varlistentry>
+      <varlistentry condition="no_pam">
        <term><filename>/etc/passwd</filename></term>
        <listitem>
          <para>User account information.</para>
        </listitem>
       </varlistentry>
-      <varlistentry>
+      <varlistentry condition="no_pam">
        <term><filename>/etc/shadow</filename></term>
        <listitem>
          <para>Secure user account information.</para>
        </listitem>
       </varlistentry>
-      <varlistentry>
+      <varlistentry condition="no_pam">
        <term><filename>/etc/login.defs</filename></term>
        <listitem>
          <para>Shadow password suite configuration.</para>
        </listitem>
       </varlistentry>
+      <varlistentry condition="pam">
+       <term><filename>/etc/pam.d/chpasswd</filename></term>
+       <listitem>
+         <para>PAM configuration for <command>chpasswd</command>.</para>
+       </listitem>
+      </varlistentry>
     </variablelist>
   </refsect1>
 
       <citerefentry>
        <refentrytitle>newusers</refentrytitle><manvolnum>8</manvolnum>
       </citerefentry>,
-      <citerefentry>
-       <refentrytitle>useradd</refentrytitle><manvolnum>8</manvolnum>
+      <citerefentry condition="no_pam">
+       <refentrytitle>login.defs</refentrytitle><manvolnum>5</manvolnum>
       </citerefentry>,
       <citerefentry>
-       <refentrytitle>login.defs</refentrytitle><manvolnum>5</manvolnum>
+       <refentrytitle>useradd</refentrytitle><manvolnum>8</manvolnum>
       </citerefentry>.
     </para>
   </refsect1>