Blame SOURCES/shadow-4.6-manfix.patch

186eda
diff -up shadow-4.6/man/groupmems.8.xml.manfix shadow-4.6/man/groupmems.8.xml
186eda
--- shadow-4.6/man/groupmems.8.xml.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/groupmems.8.xml	2020-10-23 13:15:24.105387634 +0200
9f13c6
@@ -179,20 +179,10 @@
9f13c6
   <refsect1 id='setup'>
9f13c6
     <title>SETUP</title>
9f13c6
     <para>
9f13c6
-      The <command>groupmems</command> executable should be in mode
9f13c6
-      <literal>2770</literal> as user <emphasis>root</emphasis> and in group
9f13c6
-      <emphasis>groups</emphasis>. The system administrator can add users to
9f13c6
-      group <emphasis>groups</emphasis> to allow or disallow them using the
9f13c6
-      <command>groupmems</command> utility to manage their own group
9f13c6
-      membership list.
9f13c6
+      In this operating system the <command>groupmems</command> executable
9f13c6
+      is not setuid and regular users cannot use it to manipulate
9f13c6
+      the membership of their own group.
9f13c6
     </para>
9f13c6
-
9f13c6
-    <programlisting>
9f13c6
-	$ groupadd -r groups
9f13c6
-	$ chmod 2770 groupmems
9f13c6
-	$ chown root.groups groupmems
9f13c6
-	$ groupmems -g groups -a gk4
9f13c6
-    </programlisting>
9f13c6
   </refsect1>
9f13c6
 
9f13c6
   <refsect1 id='configuration'>
186eda
diff -up shadow-4.6/man/chage.1.xml.manfix shadow-4.6/man/chage.1.xml
186eda
--- shadow-4.6/man/chage.1.xml.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/chage.1.xml	2020-10-23 13:15:24.105387634 +0200
9f13c6
@@ -102,6 +102,9 @@
9f13c6
 	    Set the number of days since January 1st, 1970 when the password
9f13c6
 	    was last changed. The date may also be expressed in the format
9f13c6
 	    YYYY-MM-DD (or the format more commonly used in your area).
9f13c6
+	    If the <replaceable>LAST_DAY</replaceable> is set to
9f13c6
+	    <emphasis>0</emphasis> the user is forced to change his password
9f13c6
+	    on the next log on.
9f13c6
 	  </para>
9f13c6
 	</listitem>
9f13c6
       </varlistentry>
9f13c6
@@ -119,6 +122,13 @@
9f13c6
 	    system again.
9f13c6
 	  </para>
9f13c6
 	  <para>
9f13c6
+	    For example the following can be used to set an account to expire
9f13c6
+	    in 180 days:
9f13c6
+	  </para>
9f13c6
+	  <programlisting>
9f13c6
+	    chage -E $(date -d +180days +%Y-%m-%d)
9f13c6
+	  </programlisting>
9f13c6
+	  <para>
9f13c6
 	    Passing the number <emphasis remap='I'>-1</emphasis> as the
9f13c6
 	    <replaceable>EXPIRE_DATE</replaceable> will remove an account
9f13c6
 	    expiration date.
9f13c6
@@ -233,6 +243,18 @@
9f13c6
       The <command>chage</command> program requires a shadow password file to
9f13c6
       be available.
9f13c6
     </para>
9f13c6
+    <para>
9f13c6
+      The chage program will report only the information from the shadow
9f13c6
+      password file. This implies that configuration from other sources
9f13c6
+     (e.g. LDAP or empty password hash field from the passwd file) that
9f13c6
+     affect the user's login will not be shown in the chage output.
9f13c6
+    </para>
9f13c6
+    <para>
9f13c6
+      The <command>chage</command> program will also not report any
9f13c6
+      inconsistency between the shadow and passwd files (e.g. missing x in
9f13c6
+      the passwd file). The <command>pwck</command> can be used to check
9f13c6
+      for this kind of inconsistencies.
9f13c6
+    </para>
9f13c6
     <para>The <command>chage</command> command is restricted to the root
9f13c6
       user, except for the <option>-l</option> option, which may be used by
9f13c6
       an unprivileged user to determine when their password or account is due
186eda
diff -up shadow-4.6/man/ja/man5/login.defs.5.manfix shadow-4.6/man/ja/man5/login.defs.5
186eda
--- shadow-4.6/man/ja/man5/login.defs.5.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/ja/man5/login.defs.5	2020-10-23 13:15:24.106387639 +0200
186eda
@@ -147,10 +147,6 @@ 以下の参照表は、
9f13c6
 shadow パスワード機能のどのプログラムが
9f13c6
 どのパラメータを使用するかを示したものである。
9f13c6
 .na
9f13c6
-.IP chfn 12
9f13c6
-CHFN_AUTH CHFN_RESTRICT
9f13c6
-.IP chsh 12
9f13c6
-CHFN_AUTH
9f13c6
 .IP groupadd 12
9f13c6
 GID_MAX GID_MIN
9f13c6
 .IP newusers 12
186eda
diff -up shadow-4.6/man/login.defs.5.xml.manfix shadow-4.6/man/login.defs.5.xml
186eda
--- shadow-4.6/man/login.defs.5.xml.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/login.defs.5.xml	2020-10-23 13:15:43.280475188 +0200
186eda
@@ -162,6 +162,27 @@
9f13c6
       long numeric parameters is machine-dependent.
9f13c6
     </para>
9f13c6
 
9f13c6
+    <para>
9f13c6
+      Please note that the parameters in this configuration file control the
9f13c6
+      behavior of the tools from the shadow-utils component. None of these
9f13c6
+      tools uses the PAM mechanism, and the utilities that use PAM (such as the
9f13c6
+      passwd command) should be configured elsewhere. The only values that
9f13c6
+      affect PAM modules are <emphasis>ENCRYPT_METHOD</emphasis> and <emphasis>SHA_CRYPT_MAX_ROUNDS</emphasis>
9f13c6
+      for pam_unix module, <emphasis>FAIL_DELAY</emphasis> for pam_faildelay module,
9f13c6
+      and <emphasis>UMASK</emphasis> for pam_umask module. Refer to
9f13c6
+      pam(8) for more information.
9f13c6
+    </para>
9f13c6
+
186eda
+    <para>
186eda
+      Please also take into account that this man page is generic and some of
186eda
+      the options may be unsupported by currently installed tools. In case of
186eda
+      doubt check <xref linkend="cross_references"/> and
186eda
+      <xref linkend="see_also"/>. For example see
186eda
+      <citerefentry><refentrytitle>login</refentrytitle>
186eda
+      <manvolnum>1</manvolnum></citerefentry> for login specific options such
186eda
+      as <emphasis>LOGIN_STRING</emphasis>.
186eda
+    </para>
186eda
+
9f13c6
     <para>The following configuration items are provided:</para>
9f13c6
 
9f13c6
     <variablelist remap='IP'>
186eda
@@ -252,16 +273,6 @@
9f13c6
 	</listitem>
9f13c6
       </varlistentry>
9f13c6
       <varlistentry>
9f13c6
-	<term>chfn</term>
9f13c6
-	<listitem>
9f13c6
-	  <para>
9f13c6
-	    <phrase condition="no_pam">CHFN_AUTH</phrase>
9f13c6
-	    CHFN_RESTRICT
9f13c6
-	    <phrase condition="no_pam">LOGIN_STRING</phrase>
9f13c6
-	  </para>
9f13c6
-	</listitem>
9f13c6
-      </varlistentry>
9f13c6
-      <varlistentry>
9f13c6
 	<term>chgpasswd</term>
9f13c6
 	<listitem>
9f13c6
 	  <para>
186eda
@@ -282,14 +293,6 @@
9f13c6
 	  </para>
9f13c6
 	</listitem>
9f13c6
       </varlistentry>
9f13c6
-      <varlistentry condition="no_pam">
9f13c6
-	<term>chsh</term>
9f13c6
-	<listitem>
9f13c6
-	  <para>
9f13c6
-	    CHSH_AUTH LOGIN_STRING
9f13c6
-	  </para>
9f13c6
-	</listitem>
9f13c6
-      </varlistentry>
9f13c6
       
9f13c6
       
9f13c6
       <varlistentry>
186eda
@@ -350,34 +353,6 @@
9f13c6
       </varlistentry>
9f13c6
       
9f13c6
       
9f13c6
-      <varlistentry>
9f13c6
-	<term>login</term>
9f13c6
-	<listitem>
9f13c6
-	  <para>
9f13c6
-	    <phrase condition="no_pam">CONSOLE</phrase>
9f13c6
-	    CONSOLE_GROUPS DEFAULT_HOME
9f13c6
-	    <phrase condition="no_pam">ENV_HZ ENV_PATH ENV_SUPATH
9f13c6
-	    ENV_TZ ENVIRON_FILE</phrase>
9f13c6
-	    ERASECHAR FAIL_DELAY
9f13c6
-	    <phrase condition="no_pam">FAILLOG_ENAB</phrase>
9f13c6
-	    FAKE_SHELL
9f13c6
-	    <phrase condition="no_pam">FTMP_FILE</phrase>
9f13c6
-	    HUSHLOGIN_FILE
9f13c6
-	    <phrase condition="no_pam">ISSUE_FILE</phrase>
9f13c6
-	    KILLCHAR
9f13c6
-	    <phrase condition="no_pam">LASTLOG_ENAB</phrase>
9f13c6
-	    LOGIN_RETRIES
9f13c6
-	    <phrase condition="no_pam">LOGIN_STRING</phrase>
9f13c6
-	    LOGIN_TIMEOUT LOG_OK_LOGINS LOG_UNKFAIL_ENAB
9f13c6
-	    <phrase condition="no_pam">MAIL_CHECK_ENAB MAIL_DIR MAIL_FILE
9f13c6
-	    MOTD_FILE NOLOGINS_FILE PORTTIME_CHECKS_ENAB
9f13c6
-	    QUOTAS_ENAB</phrase>
9f13c6
-	    TTYGROUP TTYPERM TTYTYPE_FILE
9f13c6
-	    <phrase condition="no_pam">ULIMIT UMASK</phrase>
9f13c6
-	    USERGROUPS_ENAB
9f13c6
-	  </para>
9f13c6
-	</listitem>
9f13c6
-      </varlistentry>
9f13c6
       
9f13c6
       <varlistentry>
9f13c6
 	<term>newgrp / sg</term>
186eda
@@ -405,17 +380,6 @@
9f13c6
 	</listitem>
9f13c6
       </varlistentry>
9f13c6
       
9f13c6
-      <varlistentry condition="no_pam">
9f13c6
-	<term>passwd</term>
9f13c6
-	<listitem>
9f13c6
-	  <para>
9f13c6
-	    ENCRYPT_METHOD MD5_CRYPT_ENAB OBSCURE_CHECKS_ENAB
9f13c6
-	    PASS_ALWAYS_WARN PASS_CHANGE_TRIES PASS_MAX_LEN PASS_MIN_LEN
9f13c6
-	    <phrase condition="sha_crypt">SHA_CRYPT_MAX_ROUNDS
9f13c6
-	    SHA_CRYPT_MIN_ROUNDS</phrase>
9f13c6
-	  </para>
9f13c6
-	</listitem>
9f13c6
-      </varlistentry>
9f13c6
       <varlistentry>
9f13c6
 	<term>pwck</term>
9f13c6
 	<listitem>
186eda
@@ -442,32 +406,6 @@
9f13c6
 	  </para>
9f13c6
 	</listitem>
9f13c6
       </varlistentry>
9f13c6
-      <varlistentry>
9f13c6
-	<term>su</term>
9f13c6
-	<listitem>
9f13c6
-	  <para>
9f13c6
-	    <phrase condition="no_pam">CONSOLE</phrase>
9f13c6
-	    CONSOLE_GROUPS DEFAULT_HOME
9f13c6
-	    <phrase condition="no_pam">ENV_HZ ENVIRON_FILE</phrase>
9f13c6
-	    ENV_PATH ENV_SUPATH
9f13c6
-	    <phrase condition="no_pam">ENV_TZ LOGIN_STRING MAIL_CHECK_ENAB
9f13c6
-	    MAIL_DIR MAIL_FILE QUOTAS_ENAB</phrase>
9f13c6
-	    SULOG_FILE SU_NAME
9f13c6
-	    <phrase condition="no_pam">SU_WHEEL_ONLY</phrase>
9f13c6
-	    SYSLOG_SU_ENAB
9f13c6
-	    <phrase condition="no_pam">USERGROUPS_ENAB</phrase>
9f13c6
-	  </para>
9f13c6
-	</listitem>
9f13c6
-      </varlistentry>
9f13c6
-      <varlistentry>
9f13c6
-	<term>sulogin</term>
9f13c6
-	<listitem>
9f13c6
-	  <para>
9f13c6
-	    ENV_HZ
9f13c6
-	    <phrase condition="no_pam">ENV_TZ</phrase>
9f13c6
-	  </para>
9f13c6
-	</listitem>
9f13c6
-      </varlistentry>
9f13c6
       <varlistentry>
9f13c6
 	<term>useradd</term>
9f13c6
 	<listitem>
186eda
diff -up shadow-4.6/man/shadow.5.xml.manfix shadow-4.6/man/shadow.5.xml
186eda
--- shadow-4.6/man/shadow.5.xml.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/shadow.5.xml	2020-10-23 13:15:24.106387639 +0200
9f13c6
@@ -129,7 +129,7 @@
9f13c6
 	<listitem>
9f13c6
 	  <para>
9f13c6
 	    The date of the last password change, expressed as the number
9f13c6
-	    of days since Jan 1, 1970.
9f13c6
+	    of days since Jan 1, 1970 00:00 UTC.
9f13c6
 	  </para>
9f13c6
 	  <para>
9f13c6
 	    The value 0 has a special meaning, which is that the user
9f13c6
@@ -208,8 +208,8 @@
9f13c6
 	  </para>
9f13c6
 	  <para>
9f13c6
 	    After expiration of the password and this expiration period is
9f13c6
-	    elapsed, no login is possible using the current user's
9f13c6
-	    password.  The user should contact her administrator.
9f13c6
+	    elapsed, no login is possible for the user.
9f13c6
+	    The user should contact her administrator.
9f13c6
 	  </para>
9f13c6
 	  <para>
9f13c6
 	    An empty field means that there are no enforcement of an
9f13c6
@@ -224,7 +224,7 @@
9f13c6
 	<listitem>
9f13c6
 	  <para>
9f13c6
 	    The date of expiration of the account, expressed as the number
9f13c6
-	    of days since Jan 1, 1970.
9f13c6
+	    of days since Jan 1, 1970 00:00 UTC.
9f13c6
 	  </para>
9f13c6
 	  <para>
9f13c6
 	    Note that an account expiration differs from a password
186eda
diff -up shadow-4.6/man/useradd.8.xml.manfix shadow-4.6/man/useradd.8.xml
186eda
--- shadow-4.6/man/useradd.8.xml.manfix	2020-10-23 13:15:24.100387611 +0200
186eda
+++ shadow-4.6/man/useradd.8.xml	2020-10-23 13:15:24.106387639 +0200
9f13c6
@@ -347,6 +347,11 @@
9f13c6
 	    <option>CREATE_HOME</option> is not enabled, no home
9f13c6
 	    directories are created.
9f13c6
 	  </para>
9f13c6
+	  <para>
9f13c6
+	    The directory where the user's home directory is created must
9f13c6
+	    exist and have proper SELinux context and permissions. Otherwise
9f13c6
+	    the user's home directory cannot be created or accessed.
9f13c6
+	  </para>
9f13c6
 	</listitem>
9f13c6
       </varlistentry>
9f13c6
       <varlistentry>
186eda
diff -up shadow-4.6/man/usermod.8.xml.manfix shadow-4.6/man/usermod.8.xml
186eda
--- shadow-4.6/man/usermod.8.xml.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/usermod.8.xml	2020-10-23 13:15:24.106387639 +0200
9f13c6
@@ -132,7 +132,8 @@
9f13c6
 	    If the <option>-m</option>
9f13c6
 	    option is given, the contents of the current home directory will
9f13c6
 	    be moved to the new home directory, which is created if it does
9f13c6
-	    not already exist.
9f13c6
+	    not already exist. If the current home directory does not exist
9f13c6
+	    the new home directory will not be created.
9f13c6
 	  </para>
9f13c6
 	</listitem>
9f13c6
       </varlistentry>
9f13c6
@@ -256,7 +257,8 @@
9f13c6
 	<listitem>
9f13c6
 	  <para>
9f13c6
 	    Move the content of the user's home directory to the new
9f13c6
-	    location.
9f13c6
+	    location. If the current home directory does not exist
9f13c6
+	    the new home directory will not be created.
9f13c6
 	  </para>
9f13c6
 	  <para>
9f13c6
 	    This option is only valid in combination with the
186eda
diff -up shadow-4.6/man/login.defs.d/SUB_GID_COUNT.xml.manfix shadow-4.6/man/login.defs.d/SUB_GID_COUNT.xml
186eda
--- shadow-4.6/man/login.defs.d/SUB_GID_COUNT.xml.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/login.defs.d/SUB_GID_COUNT.xml	2020-10-23 13:15:24.106387639 +0200
9f13c6
@@ -42,7 +42,7 @@
9f13c6
     <para>
9f13c6
       The default values for <option>SUB_GID_MIN</option>,
9f13c6
       <option>SUB_GID_MAX</option>, <option>SUB_GID_COUNT</option>
9f13c6
-      are respectively 100000, 600100000 and 10000.
9f13c6
+      are respectively 100000, 600100000 and 65536.
9f13c6
     </para>
9f13c6
   </listitem>
9f13c6
 </varlistentry>
186eda
diff -up shadow-4.6/man/login.defs.d/SUB_UID_COUNT.xml.manfix shadow-4.6/man/login.defs.d/SUB_UID_COUNT.xml
186eda
--- shadow-4.6/man/login.defs.d/SUB_UID_COUNT.xml.manfix	2018-04-29 18:42:37.000000000 +0200
186eda
+++ shadow-4.6/man/login.defs.d/SUB_UID_COUNT.xml	2020-10-23 13:15:24.106387639 +0200
9f13c6
@@ -42,7 +42,7 @@
9f13c6
     <para>
9f13c6
       The default values for <option>SUB_UID_MIN</option>,
9f13c6
       <option>SUB_UID_MAX</option>, <option>SUB_UID_COUNT</option>
9f13c6
-      are respectively 100000, 600100000 and 10000.
9f13c6
+      are respectively 100000, 600100000 and 65536.
9f13c6
     </para>
9f13c6
   </listitem>
9f13c6
 </varlistentry>
9f13c6
diff -up shadow-4.6/man/groupadd.8.xml.manfix shadow-4.6/man/groupadd.8.xml
186eda
--- shadow-4.6/man/groupadd.8.xml.manfix	2020-10-23 13:15:24.100387611 +0200
186eda
+++ shadow-4.6/man/groupadd.8.xml	2020-10-23 13:15:24.106387639 +0200
186eda
@@ -322,13 +322,13 @@
9f13c6
 	<varlistentry>
9f13c6
 	  <term><replaceable>4</replaceable></term>
9f13c6
 	  <listitem>
9f13c6
-	    <para>GID not unique (when <option>-o</option> not used)</para>
9f13c6
+	    <para>GID is already used (when called without <option>-o</option>)</para>
9f13c6
 	  </listitem>
9f13c6
 	</varlistentry>
9f13c6
 	<varlistentry>
9f13c6
 	  <term><replaceable>9</replaceable></term>
9f13c6
 	  <listitem>
9f13c6
-	    <para>group name not unique</para>
9f13c6
+	    <para>group name is already used</para>
9f13c6
 	  </listitem>
9f13c6
 	</varlistentry>
9f13c6
 	<varlistentry>