- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/shadow.xml
r0a6ea84 r4c51b38 34 34 </note> 35 35 36 37 <para os="b">Disable the installation of the <command>groups</command> and 38 <command>nologin</command> programs and their man pages, as better versions 39 of these programs are provided by Coreutils and Util-linux:</para> 40 41 <screen os="c"><userinput>sed -i src/Makefile.in \ 42 -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' 43 find man -name Makefile.in -exec sed -i \ 44 -e 's/man1\/groups\.1 //' -e 's/man8\/nologin\.8 //' '{}' \;</userinput></screen> 45 46 <para os="d">Prepare Shadow for compilation:</para> 47 48 <screen os="e"><userinput>./configure --sysconfdir=/etc</userinput></screen> 49 50 <para os="f">The meaning of the configure options:</para> 51 52 <variablelist os="g"> 36 <para os="f1">Fix an issue with the Russian man pages:</para> 37 38 <screen os="f2"><userinput>sed -i 's/man_MANS = $(man_nopam) /man_MANS = /' man/ru/Makefile.in</userinput></screen> 39 40 <para os="b">Prepare Shadow for compilation:</para> 41 42 <screen os="c"><userinput>./configure --sysconfdir=/etc</userinput></screen> 43 44 <para os="d">The meaning of the configure options:</para> 45 46 <variablelist os="e"> 53 47 <varlistentry> 54 48 <term><parameter>--sysconfdir=/etc</parameter></term> … … 57 51 <filename class="directory">/usr/etc</filename>.</para></listitem> 58 52 </varlistentry> 59 60 53 </variablelist> 61 54 55 <para os="f">Disable the installation of the <command>groups</command> 56 program and its man pages, as Coreutils provides a better version:</para> 57 58 <screen os="g"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile 59 find man -name Makefile -exec sed -i '/groups.1.xml/d' '{}' \; 60 find man -name Makefile -exec sed -i 's/groups.1 //' '{}' \;</userinput></screen> 62 61 63 62 <para os="h">Compile the package:</para> … … 73 72 <para os="m" id="shadow-login_defs">Instead of using the default 74 73 <emphasis>crypt</emphasis> method, use the more secure 75 <emphasis> SHA512</emphasis> method of password encryption, which also allows74 <emphasis>MD5</emphasis> method of password encryption, which also allows 76 75 passwords longer than 8 characters. It is also necessary to change the 77 76 obsolete <filename class="directory">/var/spool/mail</filename> location … … 86 85 87 86 <screen os="s"><userinput>sed -i /etc/login.defs \ 88 -e 's@#\(ENCRYPT_METHOD \).*@\1 SHA512@' \87 -e 's@#\(ENCRYPT_METHOD \).*@\1MD5@' \ 89 88 -e 's@/var/spool/mail@/var/mail@'</userinput></screen> 90 89 … … 156 155 <seg>chage, chfn, chpasswd, chgpasswd, chsh, expiry, faillog, gpasswd, 157 156 groupadd, groupdel, groupmems, groupmod, grpck, grpconv, grpunconv, 158 lastlog, login, logoutd, newgrp, newusers, passwd, pwck,157 lastlog, login, logoutd, newgrp, newusers, nologin, passwd, pwck, 159 158 pwconv, pwunconv, sg (link to newgrp), su, useradd, userdel, usermod, 160 159 vigr (link to vipw), and vipw</seg> … … 381 380 </varlistentry> 382 381 382 <varlistentry id="nologin"> 383 <term><command>nologin</command></term> 384 <listitem> 385 <para>Displays a message that an account is not available. Designed 386 to be used as the default shell for accounts that have been 387 disabled</para> 388 <indexterm zone="ch-system-shadow nologin"> 389 <primary sortas="b-nologin">nologin</primary> 390 </indexterm> 391 </listitem> 392 </varlistentry> 393 383 394 <varlistentry id="passwd"> 384 395 <term><command>passwd</command></term>
Note:
See TracChangeset
for help on using the changeset viewer.