source: chapter08/shadow.xml@ c04d98d

12.2 12.2-rc1 multilib trunk xry111/arm64 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.2 xry111/multilib
Last change on this file since c04d98d was 98bdf39, checked in by Xi Ruoyao <xry111@…>, 6 months ago

shadow: Capitalization adjustment

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