|
@@ -67,9 +67,35 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;</userinput></s
|
|
|
for user mailboxes that Shadow uses by default to the <filename
|
|
|
class="directory">/var/mail</filename> location used currently:</para>
|
|
|
|
|
|
-<screen><userinput remap="configure">sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
|
|
|
+<screen><userinput remap="pre">sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
|
|
|
-e 's@/var/spool/mail@/var/mail@' etc/login.defs</userinput></screen>
|
|
|
|
|
|
+ <para>Now fix a bug that prevents <command>useradd</command> from
|
|
|
+ setting the shell entry in the /etc/passwd file. In this case we need a
|
|
|
+ short patch, but can include it directly here without the need for a
|
|
|
+ separate file:</para>
|
|
|
+
|
|
|
+<screen><userinput remap="pre">echo '--- src/useradd.c (old)
|
|
|
++++ src/useradd.c (new)
|
|
|
+@@ -2027,6 +2027,8 @@
|
|
|
+ is_shadow_grp = sgr_file_present ();
|
|
|
+ #endif
|
|
|
+
|
|
|
++ get_defaults ();
|
|
|
++
|
|
|
+ process_flags (argc, argv);
|
|
|
+
|
|
|
+ #ifdef ENABLE_SUBIDS
|
|
|
+@@ -2036,8 +2038,6 @@
|
|
|
+ (!user_id || (user_id <= uid_max && user_id >= uid_min));
|
|
|
+ #endif /* ENABLE_SUBIDS */
|
|
|
+
|
|
|
+- get_defaults ();
|
|
|
+-
|
|
|
+ #ifdef ACCT_TOOLS_SETUID
|
|
|
+ #ifdef USE_PAM
|
|
|
+ {' | patch -p0 -l</userinput></screen>
|
|
|
+
|
|
|
<note>
|
|
|
<para>If you chose to build Shadow with Cracklib support, run the following:</para>
|
|
|
|