Changeset 00abb8f for chapter06/shadow.xml
- Timestamp:
- 05/18/2017 11:32:21 PM (7 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 9e326ab
- Parents:
- 1af5572
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/shadow.xml
r1af5572 r00abb8f 71 71 -e 's@/var/spool/mail@/var/mail@' etc/login.defs</userinput></screen> 72 72 73 <para>Now fix a bug that prevents <command>useradd</command> from74 setting the shell entry in the /etc/passwd file. In this case we need a75 short patch, but can include it directly here without the need for a76 separate file:</para>77 78 <screen><userinput remap="pre">echo '--- src/useradd.c (old)79 +++ src/useradd.c (new)80 @@ -2027,6 +2027,8 @@81 is_shadow_grp = sgr_file_present ();82 #endif83 84 + get_defaults ();85 +86 process_flags (argc, argv);87 88 #ifdef ENABLE_SUBIDS89 @@ -2036,8 +2038,6 @@90 (!user_id || (user_id <= uid_max && user_id >= uid_min));91 #endif /* ENABLE_SUBIDS */92 93 - get_defaults ();94 -95 #ifdef ACCT_TOOLS_SETUID96 #ifdef USE_PAM97 {' | patch -p0 -l</userinput></screen>98 99 73 <note> 100 74 <para>If you chose to build Shadow with Cracklib support, run the following:</para> … … 107 81 108 82 <screen><userinput remap="pre">sed -i 's/1000/999/' etc/useradd</userinput></screen> 109 110 <para>Fix a security issue identified upstream:</para>111 112 <screen><userinput remap="pre">sed -i -e '47 d' -e '60,65 d' libmisc/myname.c</userinput></screen>113 83 114 84 <para>Prepare Shadow for compilation:</para>
Note:
See TracChangeset
for help on using the changeset viewer.