Author: pierre Date: Sun Feb 19 12:04:32 2017 New Revision: 18361 Log: Fix shadow use of defaults. Experiment a new kind of "here patch"
Modified: trunk/BOOK/postlfs/security/shadow.xml Modified: trunk/BOOK/postlfs/security/shadow.xml ============================================================================== --- trunk/BOOK/postlfs/security/shadow.xml Sun Feb 19 11:32:33 2017 (r18360) +++ trunk/BOOK/postlfs/security/shadow.xml Sun Feb 19 12:04:32 2017 (r18361) @@ -131,6 +131,26 @@ sed -i 's/1000/999/' etc/useradd && sed -i -e '/snprintf/s@_msg,@_msg, 256,@' src/su.c && sed -i -e '47 d' -e '60,65 d' libmisc/myname.c && +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 && ./configure --sysconfdir=/etc --with-group-name-max-length=32 && make</userinput></screen> @@ -192,6 +212,12 @@ </para> <para> + <command>echo '--- ...</command>: This command illustrates another + way to apply patches. Without the patch, <command>useradd</command> + does not use the defaults in <filename>/etc/default/useradd</filename>. + </para> + + <para> <parameter>--with-group-name-max-length=32</parameter>: The maximum user name is 32 characters. Make the maximum group name the same. </para> -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page