source: chapter08/shadow.xml@ 9a23a75

11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since 9a23a75 was 9a23a75, checked in by Xi Ruoyao <xry111@…>, 17 months ago

Revert "shadow: add spaces around &mdash;"

This reverts commit 0298c764d8ae6a6e2b237bad78512496dfc14fab.

We don't use spaces around &mdash anywhere else in the book.

  • Property mode set to 100644
File size: 23.7 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[ddd5542]7
[81fd230]8<sect1 id="ch-system-shadow" role="wrap">
[ddd5542]9 <?dbhtml filename="shadow.html"?>
10
[e747759]11 <sect1info condition="script">
12 <productname>shadow</productname>
13 <productnumber>&shadow-version;</productnumber>
14 <address>&shadow-url;</address>
15 </sect1info>
16
[ddd5542]17 <title>Shadow-&shadow-version;</title>
18
19 <indexterm zone="ch-system-shadow">
20 <primary sortas="a-Shadow">Shadow</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Shadow package contains programs for handling passwords in a secure
27 way.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
[673b0d8]32
[ddd5542]33 <seglistitem>
[fb386e0]34 <seg>&shadow-fin-sbu;</seg>
35 <seg>&shadow-fin-du;</seg>
[ddd5542]36 </seglistitem>
37 </segmentedlist>
[6370fa6]38
[ddd5542]39 </sect2>
[3554fa3a]40
[ddd5542]41 <sect2 role="installation">
42 <title>Installation of Shadow</title>
[73aedd1d]43
[ddd5542]44 <note>
45 <para>If you would like to enforce the use of strong passwords, refer to
[0ee07e5]46 <ulink url="&blfs-book;postlfs/cracklib.html"/> for installing
[c466df68]47 CrackLib prior to building Shadow. Then add
[ddd5542]48 <parameter>--with-libcrack</parameter> to the <command>configure</command>
49 command below.</para>
50 </note>
[a75f3f8]51
[ddd5542]52 <para>Disable the installation of the <command>groups</command> program
[b7b0eea]53 and its man pages, as Coreutils provides a better version. Also,
54 prevent the installation of manual pages that were already installed in
[91f0d5b]55 <xref linkend="ch-system-man-pages"/>:</para>
[98fcc37]56
[60c6e3b]57<screen><userinput remap="pre">sed -i 's/groups$(EXEEXT) //' src/Makefile.in
[b057615]58find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
59find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
60find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;</userinput></screen>
[98fcc37]61
[ddd5542]62 <para id="shadow-login_defs">Instead of using the default
63 <emphasis>crypt</emphasis> method, use the more secure
[e836f78]64 <emphasis>SHA-512</emphasis> method of password encryption, which also
65 allows passwords longer than 8 characters. It is also necessary to change
66 the obsolete <filename class="directory">/var/spool/mail</filename> location
[ddd5542]67 for user mailboxes that Shadow uses by default to the <filename
[d7a9421]68 class="directory">/var/mail</filename> location used currently. And,
[54948b7]69 remove <filename class="directory">/bin</filename> and
70 <filename class="directory">/sbin</filename> from the <envar>PATH</envar>,
71 since they are simply symlinks to their counterparts in
[d7a9421]72 <filename class="directory">/usr</filename>.</para>
73
74 <note>
[54948b7]75 <para>If you wish to include <filename class="directory">/bin</filename>
76 and/or <filename class="directory">/sbin</filename> in the <envar>PATH</envar>
77 for some reason, modify the
78 <envar>PATH</envar> in <filename>.bashrc</filename> after LFS has been
[d7a9421]79 built.</para>
80 </note>
[c21999c6]81
[3d92d63]82<screen><userinput remap="pre">sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \
[6a156bab]83 -e 's:/var/spool/mail:/var/mail:' \
[d7a9421]84 -e '/PATH=/{s@/sbin:@@;s@/bin:@@}' \
[6a156bab]85 -i etc/login.defs</userinput></screen>
[f2e18a8]86
[ddd5542]87 <note>
[54948b7]88 <para>If you chose to build Shadow with Cracklib support, issue this command:</para>
[a7b5482]89
[6a156bab]90<screen role="nodump"><userinput>sed -i 's:DICTPATH.*:DICTPATH\t/lib/cracklib/pw_dict:' etc/login.defs</userinput></screen>
[ddd5542]91 </note>
[ff96923]92<!--
[0d84af1]93 <para>Make a minor change to make the first group number generated
94 by useradd 1000:</para>
[030875a8]95
96<screen><userinput remap="pre">sed -i 's/1000/999/' etc/useradd</userinput></screen>
[ff96923]97-->
[ade3efa]98<!--
[6d6f242]99 <para>Fix a simple programming error by modifying a file with following command:</para>
100
[5287d52]101<screen><userinput remap="pre">sed -e "224s/rounds/min_rounds/" -i libmisc/salt.c</userinput></screen>
[ade3efa]102-->
[c466df68]103 <para>Prepare Shadow for compilation:</para>
104
[0827a1a]105<screen><userinput remap="configure">touch /usr/bin/passwd
[6a156bab]106./configure --sysconfdir=/etc \
[52155b6]107 --disable-static \
[efcb393]108 --with-group-name-max-length=32</userinput></screen>
[c7b8b88]109
110 <variablelist>
[54948b7]111 <title>The meaning of the new configuration options:</title>
[c7b8b88]112
[0827a1a]113 <varlistentry>
114 <term><command>touch /usr/bin/passwd</command></term>
115 <listitem>
116 <para>The file <filename>/usr/bin/passwd</filename> needs
[54948b7]117 to exist because its location is hardcoded in some programs;
118 if it does not already exist, the installation script will
119 create it in the wrong place.</para>
[0827a1a]120 </listitem>
121 </varlistentry>
[c7b8b88]122 <varlistentry>
123 <term><parameter>--with-group-name-max-length=32</parameter></term>
124 <listitem>
[54948b7]125 <para>The longest permissible user name is 32 characters. Make the maximum
126 length of a group name the same.</para>
[c7b8b88]127 </listitem>
128 </varlistentry>
129
130 </variablelist>
[c466df68]131
[040ba8e]132 <para>Compile the package:</para>
133
[ff96923]134 <screen><userinput remap="make">make</userinput></screen>
[040ba8e]135
136 <para>This package does not come with a test suite.</para>
137
138 <para>Install the package:</para>
139
[ff96923]140 <screen><userinput remap="install">make exec_prefix=/usr install
[7f13657d]141make -C man install-man</userinput></screen>
[73aedd1d]142
[ddd5542]143 </sect2>
[24351aa]144
[ddd5542]145 <sect2 id="conf-shadow" role="configuration">
146 <title>Configuring Shadow</title>
[2309b72]147
[ddd5542]148 <indexterm zone="conf-shadow">
149 <primary sortas="a-Shadow">Shadow</primary>
150 <secondary>configuring</secondary>
151 </indexterm>
[81fd230]152
[ddd5542]153 <para>This package contains utilities to add, modify, and delete users and
154 groups; set and change their passwords; and perform other administrative
155 tasks. For a full explanation of what <emphasis>password shadowing</emphasis>
156 means, see the <filename>doc/HOWTO</filename> file within the unpacked
[54948b7]157 source tree. If you use Shadow support, keep in mind that programs which need
[ddd5542]158 to verify passwords (display managers, FTP programs, pop3 daemons, etc.)
[54948b7]159 must be Shadow-compliant. That is, they must be able to work with
[ddd5542]160 shadowed passwords.</para>
[81fd230]161
[ddd5542]162 <para>To enable shadowed passwords, run the following command:</para>
[2309b72]163
[cd1ddd7]164<screen><userinput>pwconv</userinput></screen>
[2309b72]165
[ddd5542]166 <para>To enable shadowed group passwords, run:</para>
[2309b72]167
[cd1ddd7]168<screen><userinput>grpconv</userinput></screen>
[2309b72]169
[7f13657d]170 <para>Shadow's default configuration for the <command>useradd</command>
[54948b7]171 utility needs some explanation. First, the default
[c466df68]172 action for the <command>useradd</command> utility is to create the user and
[54948b7]173 a group with the same name as the user. By default the user ID (UID) and
174 group ID (GID) numbers will begin at 1000. This means if you don't pass
175 extra parameters to <command>useradd</command>, each user will be a member of a
[edbeeb5]176 unique group on the system. If this behavior is undesirable, you'll need
[54948b7]177 to pass either the <parameter>-g</parameter> or <parameter>-N</parameter>
178 parameter to <command>useradd</command>, or else change the setting of
[7f13657d]179 <parameter>USERGROUPS_ENAB</parameter> in
180 <filename>/etc/login.defs</filename>. See <filename>useradd(8)</filename>
181 for more information.</para>
182
183 <para>Second, to change the default parameters, the file
[54948b7]184 <filename>/etc/default/useradd</filename> must be created and tailored
[7f13657d]185 to suit your particular needs. Create it with:</para>
[2b3f5219]186
[7f13657d]187<screen><userinput>mkdir -p /etc/default
188useradd -D --gid 999</userinput></screen>
[c466df68]189
190 <variablelist>
[54948b7]191 <title><filename>/etc/default/useradd</filename> parameter explanations</title>
[c466df68]192
193 <varlistentry>
[7f13657d]194 <term><parameter>GROUP=999</parameter></term>
[c466df68]195 <listitem>
196 <para>This parameter sets the beginning of the group numbers used in
[2b3f5219]197 the <filename>/etc/group</filename> file. The particular value 999
[54948b7]198 comes from the <parameter>--gid</parameter> parameter above. You
199 may set it to any desired value.
[da7949d]200
201 Note that <command>useradd</command> will never reuse a UID or GID.
202 If the number identified in this parameter is used, it will use the
203 next available number. Note also that if you don't have a group with
[54948b7]204 an ID equal to this number on your system, then the first time you use
[da7949d]205 <command>useradd</command> without the <parameter>-g</parameter>
[9a23a75]206 parameter, an error message will be generated&mdash;<computeroutput>useradd:
[54948b7]207 unknown GID 999</computeroutput>,
[66d32d7]208 even though the account has been created correctly. That is why we
[b029aa8]209 created the group <systemitem class="groupname">users</systemitem>
[da7949d]210 with this group ID in <xref linkend='ch-tools-createfiles'/>.</para>
[b029aa8]211
[c466df68]212 </listitem>
213 </varlistentry>
214 <varlistentry>
215 <term><parameter>CREATE_MAIL_SPOOL=yes</parameter></term>
216 <listitem>
217 <para>This parameter causes <command>useradd</command> to create a
[54948b7]218 mailbox file for each new user. <command>useradd</command>
219 will assign the group ownership of this file to the
[c466df68]220 <systemitem class="groupname">mail</systemitem> group with 0660
[54948b7]221 permissions. If you would rather not create these files,
222 issue the following command:</para>
[c466df68]223
[7f13657d]224<screen><userinput>sed -i '/MAIL/s/yes/no/' /etc/default/useradd</userinput></screen>
[c466df68]225 </listitem>
226 </varlistentry>
227
228 </variablelist>
[d1538c0]229
[ddd5542]230 </sect2>
[c21999c6]231
[ddd5542]232 <sect2 role="configuration">
[54948b7]233 <title>Setting the Root Password</title>
[2309b72]234
[ddd5542]235 <para>Choose a password for user <emphasis>root</emphasis> and set it
236 by running:</para>
[2309b72]237
[ab007ca]238<screen role="nodump"><userinput>passwd root</userinput></screen>
[673b0d8]239
[ddd5542]240 </sect2>
241
242 <sect2 id="contents-shadow" role="content">
243 <title>Contents of Shadow</title>
244
245 <segmentedlist>
246 <segtitle>Installed programs</segtitle>
[f2dff2d]247 <segtitle>Installed directories</segtitle>
[b5e4ab7]248 <segtitle>Installed libraries</segtitle>
[ddd5542]249
250 <seglistitem>
[7ad1056]251 <seg>chage, chfn, chgpasswd, chpasswd, chsh, expiry, faillog,
252 getsubids, gpasswd, groupadd, groupdel, groupmems, groupmod, grpck,
253 grpconv, grpunconv, lastlog, login, logoutd, newgidmap, newgrp,
254 newuidmap, newusers, nologin, passwd, pwck, pwconv, pwunconv,
255 sg (link to newgrp), su, useradd, userdel, usermod,
256 vigr (link to vipw), and vipw</seg>
[f2dff2d]257 <seg>/etc/default and /usr/include/shadow</seg>
[52155b6]258 <seg>libsubid.so</seg>
[ddd5542]259 </seglistitem>
260 </segmentedlist>
261
262 <variablelist>
263 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
264 <?dbfo list-presentation="list"?>
265 <?dbhtml list-presentation="table"?>
266
267 <varlistentry id="chage">
268 <term><command>chage</command></term>
269 <listitem>
270 <para>Used to change the maximum number of days between obligatory
271 password changes</para>
272 <indexterm zone="ch-system-shadow chage">
273 <primary sortas="b-chage">chage</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="chfn">
279 <term><command>chfn</command></term>
280 <listitem>
281 <para>Used to change a user's full name and other information</para>
282 <indexterm zone="ch-system-shadow chfn">
283 <primary sortas="b-chfn">chfn</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
[470b5d4]288 <varlistentry id="chgpasswd">
289 <term><command>chgpasswd</command></term>
290 <listitem>
291 <para>Used to update group passwords in batch mode</para>
292 <indexterm zone="ch-system-shadow chgpasswd">
293 <primary sortas="b-chgpasswd">chgpasswd</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
[ddd5542]298 <varlistentry id="chpasswd">
299 <term><command>chpasswd</command></term>
300 <listitem>
[470b5d4]301 <para>Used to update user passwords in batch mode</para>
[ddd5542]302 <indexterm zone="ch-system-shadow chpasswd">
303 <primary sortas="b-chpasswd">chpasswd</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="chsh">
309 <term><command>chsh</command></term>
310 <listitem>
311 <para>Used to change a user's default login shell</para>
312 <indexterm zone="ch-system-shadow chsh">
313 <primary sortas="b-chsh">chsh</primary>
314 </indexterm>
315 </listitem>
316 </varlistentry>
317
318 <varlistentry id="expiry">
319 <term><command>expiry</command></term>
320 <listitem>
321 <para>Checks and enforces the current password expiration policy</para>
322 <indexterm zone="ch-system-shadow expiry">
323 <primary sortas="b-expiry">expiry</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="faillog">
329 <term><command>faillog</command></term>
330 <listitem>
331 <para>Is used to examine the log of login failures, to set a maximum
[54948b7]332 number of failures before an account is blocked, and to reset the
[ddd5542]333 failure count</para>
334 <indexterm zone="ch-system-shadow faillog">
335 <primary sortas="b-faillog">faillog</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
[7ad1056]340 <varlistentry id="getsubids">
341 <term><command>getsubids</command></term>
342 <listitem>
343 <para>Is used to list the subordinate id ranges for a user</para>
344 <indexterm zone="ch-system-shadow getsubids">
345 <primary sortas="b-getsubids">getsubids</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
[ddd5542]350 <varlistentry id="gpasswd">
351 <term><command>gpasswd</command></term>
352 <listitem>
353 <para>Is used to add and delete members and administrators to
354 groups</para>
355 <indexterm zone="ch-system-shadow gpasswd">
356 <primary sortas="b-gpasswd">gpasswd</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="groupadd">
362 <term><command>groupadd</command></term>
363 <listitem>
364 <para>Creates a group with the given name</para>
365 <indexterm zone="ch-system-shadow groupadd">
366 <primary sortas="b-groupadd">groupadd</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="groupdel">
372 <term><command>groupdel</command></term>
373 <listitem>
374 <para>Deletes the group with the given name</para>
375 <indexterm zone="ch-system-shadow groupdel">
376 <primary sortas="b-groupdel">groupdel</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
[2791a8e]381 <varlistentry id="groupmems">
382 <term><command>groupmems</command></term>
383 <listitem>
384 <para>Allows a user to administer his/her own group membership list
385 without the requirement of super user privileges.</para>
386 <indexterm zone="ch-system-shadow groupmems">
387 <primary sortas="b-groupmems">groupmems</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
[ddd5542]392 <varlistentry id="groupmod">
393 <term><command>groupmod</command></term>
394 <listitem>
395 <para>Is used to modify the given group's name or GID</para>
396 <indexterm zone="ch-system-shadow groupmod">
397 <primary sortas="b-groupmod">groupmod</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="grpck">
403 <term><command>grpck</command></term>
404 <listitem>
405 <para>Verifies the integrity of the group files
406 <filename>/etc/group</filename> and
407 <filename>/etc/gshadow</filename></para>
408 <indexterm zone="ch-system-shadow grpck">
409 <primary sortas="b-grpck">grpck</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="grpconv">
415 <term><command>grpconv</command></term>
416 <listitem>
417 <para>Creates or updates the shadow group file from the normal
418 group file</para>
419 <indexterm zone="ch-system-shadow grpconv">
420 <primary sortas="b-grpconv">grpconv</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
425 <varlistentry id="grpunconv">
426 <term><command>grpunconv</command></term>
427 <listitem>
428 <para>Updates <filename>/etc/group</filename> from
429 <filename>/etc/gshadow</filename> and then deletes the latter</para>
430 <indexterm zone="ch-system-shadow grpunconv">
431 <primary sortas="b-grpunconv">grpunconv</primary>
432 </indexterm>
433 </listitem>
434 </varlistentry>
435
436 <varlistentry id="lastlog">
437 <term><command>lastlog</command></term>
438 <listitem>
439 <para>Reports the most recent login of all users or of a
440 given user</para>
441 <indexterm zone="ch-system-shadow lastlog">
442 <primary sortas="b-lastlog">lastlog</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
447 <varlistentry id="login">
448 <term><command>login</command></term>
449 <listitem>
450 <para>Is used by the system to let users sign on</para>
451 <indexterm zone="ch-system-shadow login">
452 <primary sortas="b-login">login</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 <varlistentry id="logoutd">
458 <term><command>logoutd</command></term>
459 <listitem>
460 <para>Is a daemon used to enforce restrictions on log-on time
461 and ports</para>
462 <indexterm zone="ch-system-shadow logoutd">
463 <primary sortas="b-logoutd">logoutd</primary>
464 </indexterm>
465 </listitem>
466 </varlistentry>
467
[040ecb6]468 <varlistentry id="newgidmap">
469 <term><command>newgidmap</command></term>
470 <listitem>
471 <para>Is used to set the gid mapping of a user namespace</para>
472 <indexterm zone="ch-system-shadow newgidmap">
473 <primary sortas="b-newgidmap">newgidmap</primary>
474 </indexterm>
475 </listitem>
476 </varlistentry>
477
[ddd5542]478 <varlistentry id="newgrp">
479 <term><command>newgrp</command></term>
480 <listitem>
481 <para>Is used to change the current GID during a login session</para>
482 <indexterm zone="ch-system-shadow newgrp">
483 <primary sortas="b-newgrp">newgrp</primary>
484 </indexterm>
485 </listitem>
[040ecb6]486 </varlistentry>
487
488 <varlistentry id="newuidmap">
489 <term><command>newuidmap</command></term>
490 <listitem>
491 <para>Is used to set the uid mapping of a user namespace</para>
492 <indexterm zone="ch-system-shadow newuidmap">
493 <primary sortas="b-newuidmap">newuidmap</primary>
494 </indexterm>
495 </listitem>
[ddd5542]496 </varlistentry>
497
498 <varlistentry id="newusers">
499 <term><command>newusers</command></term>
500 <listitem>
501 <para>Is used to create or update an entire series of user
502 accounts</para>
503 <indexterm zone="ch-system-shadow newusers">
504 <primary sortas="b-newusers">newusers</primary>
505 </indexterm>
506 </listitem>
507 </varlistentry>
508
[8bc46a5]509 <varlistentry id="nologin">
510 <term><command>nologin</command></term>
511 <listitem>
[54948b7]512 <para>Displays a message saying an account is not available; it is designed
513 to be used as the default shell for disabled accounts</para>
[8bc46a5]514 <indexterm zone="ch-system-shadow nologin">
515 <primary sortas="b-nologin">nologin</primary>
516 </indexterm>
517 </listitem>
518 </varlistentry>
519
[ddd5542]520 <varlistentry id="passwd">
521 <term><command>passwd</command></term>
522 <listitem>
523 <para>Is used to change the password for a user or group account</para>
524 <indexterm zone="ch-system-shadow passwd">
525 <primary sortas="b-passwd">passwd</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
529
530 <varlistentry id="pwck">
531 <term><command>pwck</command></term>
532 <listitem>
533 <para>Verifies the integrity of the password files
534 <filename>/etc/passwd</filename> and
535 <filename>/etc/shadow</filename></para>
536 <indexterm zone="ch-system-shadow pwck">
537 <primary sortas="b-pwck">pwck</primary>
538 </indexterm>
539 </listitem>
540 </varlistentry>
541
542 <varlistentry id="pwconv">
543 <term><command>pwconv</command></term>
544 <listitem>
545 <para>Creates or updates the shadow password file from the normal
546 password file</para>
547 <indexterm zone="ch-system-shadow pwconv">
548 <primary sortas="b-pwconv">pwconv</primary>
549 </indexterm>
550 </listitem>
551 </varlistentry>
552
553 <varlistentry id="pwunconv">
554 <term><command>pwunconv</command></term>
555 <listitem>
556 <para>Updates <filename>/etc/passwd</filename> from
557 <filename>/etc/shadow</filename> and then deletes the latter</para>
558 <indexterm zone="ch-system-shadow pwunconv">
559 <primary sortas="b-pwunconv">pwunconv</primary>
560 </indexterm>
561 </listitem>
562 </varlistentry>
563
564 <varlistentry id="sg">
565 <term><command>sg</command></term>
566 <listitem>
567 <para>Executes a given command while the user's GID
568 is set to that of the given group</para>
569 <indexterm zone="ch-system-shadow sg">
570 <primary sortas="b-sg">sg</primary>
571 </indexterm>
572 </listitem>
573 </varlistentry>
574
575 <varlistentry id="su">
576 <term><command>su</command></term>
577 <listitem>
578 <para>Runs a shell with substitute user and group IDs</para>
579 <indexterm zone="ch-system-shadow su">
580 <primary sortas="b-su">su</primary>
581 </indexterm>
582 </listitem>
583 </varlistentry>
584
585 <varlistentry id="useradd">
586 <term><command>useradd</command></term>
587 <listitem>
588 <para>Creates a new user with the given name, or updates the default
589 new-user information</para>
590 <indexterm zone="ch-system-shadow useradd">
591 <primary sortas="b-useradd">useradd</primary>
592 </indexterm>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry id="userdel">
597 <term><command>userdel</command></term>
598 <listitem>
[54948b7]599 <para>Deletes the specified user account</para>
[ddd5542]600 <indexterm zone="ch-system-shadow userdel">
601 <primary sortas="b-userdel">userdel</primary>
602 </indexterm>
603 </listitem>
604 </varlistentry>
605
606 <varlistentry id="usermod">
607 <term><command>usermod</command></term>
608 <listitem>
[54948b7]609 <para>Is used to modify the given user's login name, user
610 identification (UID), shell, initial group, home directory, etc.</para>
[ddd5542]611 <indexterm zone="ch-system-shadow usermod">
612 <primary sortas="b-usermod">usermod</primary>
613 </indexterm>
614 </listitem>
615 </varlistentry>
616
617 <varlistentry id="vigr">
618 <term><command>vigr</command></term>
619 <listitem>
620 <para>Edits the <filename>/etc/group</filename> or
621 <filename>/etc/gshadow</filename> files</para>
622 <indexterm zone="ch-system-shadow vigr">
623 <primary sortas="b-vigr">vigr</primary>
624 </indexterm>
625 </listitem>
626 </varlistentry>
627
628 <varlistentry id="vipw">
629 <term><command>vipw</command></term>
630 <listitem>
631 <para>Edits the <filename>/etc/passwd</filename> or
632 <filename>/etc/shadow</filename> files</para>
633 <indexterm zone="ch-system-shadow vipw">
634 <primary sortas="b-vipw">vipw</primary>
635 </indexterm>
636 </listitem>
637 </varlistentry>
638
[b5e4ab7]639 <varlistentry id="libsubid">
640 <term><filename class='libraryfile'>libsubid</filename></term>
641 <listitem>
[a66cd7f0]642 <para>library to handle subordinate id ranges for users and groups</para>
[b5e4ab7]643 <indexterm zone="ch-system-shadow libsubid">
644 <primary sortas="c-libsubid">libsubid</primary>
645 </indexterm>
646 </listitem>
647 </varlistentry>
648
[ddd5542]649 </variablelist>
650
651 </sect2>
[81fd230]652
[ddd5542]653</sect1>
Note: See TracBrowser for help on using the repository browser.