- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/sysvinit.xml
r86e0296 r3b0c31e 25 25 <title>Installation of Sysvinit</title> 26 26 27 <para os ="a">Apply a sed which disables last, mesg, mountpoint, sulogin, 28 utmpdump, and wall from being built and installed as they are provided by 29 Util-linux:</para> 30 31 <screen os="b"><userinput>sed -i -e 's/\ sulogin[^ ]*//' \ 32 -e '/utmpdump/d' -e '/mountpoint/d' -e '/mesg/d' src/Makefile</userinput></screen> 33 34 <para os ="c">Compile the package:</para> 27 <para os="c">Compile the package:</para> 35 28 36 29 <screen os="d"><userinput>make -C src clobber … … 83 76 84 77 <screen><userinput>cat >> /etc/inittab << "EOF" 85 <literal>1:2345:respawn:/sbin/agetty - -noclear -I '\033(K' tty1 960086 2:2345:respawn:/sbin/agetty - -noclear -I '\033(K' tty2 960087 3:2345:respawn:/sbin/agetty - -noclear -I '\033(K' tty3 960088 4:2345:respawn:/sbin/agetty - -noclear -I '\033(K' tty4 960089 5:2345:respawn:/sbin/agetty - -noclear -I '\033(K' tty5 960090 6:2345:respawn:/sbin/agetty - -noclear -I '\033(K' tty6 960078 <literal>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600 79 2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600 80 3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600 81 4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600 82 5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600 83 6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600 91 84 </literal> 92 85 EOF</userinput></screen> … … 96 89 97 90 <screen><userinput>cat >> /etc/inittab << "EOF" 98 <literal>c0:12345:respawn:/sbin/agetty --noclear115200 ttyS0 vt10091 <literal>c0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100 99 92 </literal> 100 93 EOF</userinput></screen> … … 125 118 126 119 <seglistitem> 127 <seg>bootlogd, fstab-decode, halt, init, killall5, pidof (link to 128 killall5), poweroff (link to halt), reboot (link to halt), runlevel, 129 shutdown, and telinit (link to init)</seg> 120 <seg>bootlogd, halt, init, killall5, last, lastb (link to last), mesg, 121 mountpoint, pidof (link to killall5), poweroff (link to halt), 122 reboot (link to halt), runlevel, shutdown, sulogin, 123 telinit (link to init), utmpdump, and wall</seg> 130 124 </seglistitem> 131 125 </segmentedlist> … … 142 136 <indexterm zone="ch-system-sysvinit bootlogd"> 143 137 <primary sortas="b-bootlogd">bootlogd</primary> 144 </indexterm>145 </listitem>146 </varlistentry>147 148 <varlistentry id="fstab-decode">149 <term><command>fstab-decode</command></term>150 <listitem>151 <para>Runs a command with fstab-encoded arguments</para>152 <indexterm zone="ch-system-sysvinit fstab-decode">153 <primary sortas="b-fstab-decode">fstab-decode</primary>154 138 </indexterm> 155 139 </listitem> … … 194 178 </varlistentry> 195 179 180 <varlistentry id="last"> 181 <term><command>last</command></term> 182 <listitem> 183 <para>Shows which users last logged in (and out), searching back 184 through the <filename>/var/log/wtmp</filename> file; it also shows 185 system boots, shutdowns, and run-level changes</para> 186 <indexterm zone="ch-system-sysvinit last"> 187 <primary sortas="b-last">last</primary> 188 </indexterm> 189 </listitem> 190 </varlistentry> 191 192 <varlistentry id="lastb"> 193 <term><command>lastb</command></term> 194 <listitem> 195 <para>Shows the failed login attempts, as logged in 196 <filename>/var/log/btmp</filename></para> 197 <indexterm zone="ch-system-sysvinit lastb"> 198 <primary sortas="b-lastb">lastb</primary> 199 </indexterm> 200 </listitem> 201 </varlistentry> 202 203 <varlistentry id="mesg"> 204 <term><command>mesg</command></term> 205 <listitem> 206 <para>Controls whether other users can send messages to the current 207 user's terminal</para> 208 <indexterm zone="ch-system-sysvinit mesg"> 209 <primary sortas="b-mesg">mesg</primary> 210 </indexterm> 211 </listitem> 212 </varlistentry> 213 214 <varlistentry id="mountpoint"> 215 <term><command>mountpoint</command></term> 216 <listitem> 217 <para>Tells you whether or not a directory is a mount point.</para> 218 <indexterm zone="ch-system-sysvinit mountpoint"> 219 <primary sortas="b-mountpoint">mountpoint</primary> 220 </indexterm> 221 </listitem> 222 </varlistentry> 223 196 224 <varlistentry id="pidof"> 197 225 <term><command>pidof</command></term> … … 248 276 </varlistentry> 249 277 278 <varlistentry id="sulogin"> 279 <term><command>sulogin</command></term> 280 <listitem> 281 <para>Allows <emphasis>root</emphasis> to log in; it is normally 282 invoked by <command>init</command> when the system goes into single 283 user mode</para> 284 <indexterm zone="ch-system-sysvinit sulogin"> 285 <primary sortas="b-sulogin">sulogin</primary> 286 </indexterm> 287 </listitem> 288 </varlistentry> 289 250 290 <varlistentry id="telinit"> 251 291 <term><command>telinit</command></term> … … 258 298 </varlistentry> 259 299 300 <varlistentry id="utmpdump"> 301 <term><command>utmpdump</command></term> 302 <listitem> 303 <para>Displays the content of the given login file in a more 304 user-friendly format</para> 305 <indexterm zone="ch-system-sysvinit utmpdump"> 306 <primary sortas="b-utmpdump">utmpdump</primary> 307 </indexterm> 308 </listitem> 309 </varlistentry> 310 311 <varlistentry id="wall"> 312 <term><command>wall</command></term> 313 <listitem> 314 <para>Writes a message to all logged-in users</para> 315 <indexterm zone="ch-system-sysvinit wall"> 316 <primary sortas="b-wall">wall</primary> 317 </indexterm> 318 </listitem> 319 </varlistentry> 320 260 321 </variablelist> 261 322
Note:
See TracChangeset
for help on using the changeset viewer.