source: chapter08/shadow.xml@ aea16f6

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 aea16f6 was aea16f6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Sync shadow "rounds" parameter to blfs

Otherwise, As Xi has noticed, the password set for root at the end
of lfs may use the value 5000 for rounds, and not be changed, even
if later the number of rounds is increased.

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