1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-shadow" role="wrap">
|
---|
9 | <?dbhtml filename="shadow.html"?>
|
---|
10 |
|
---|
11 | <title>Shadow-&shadow-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-shadow">
|
---|
14 | <primary sortas="a-Shadow">Shadow</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Shadow package contains programs for handling passwords in a secure
|
---|
21 | way.</para>
|
---|
22 |
|
---|
23 | <segmentedlist>
|
---|
24 | <segtitle>&buildtime;</segtitle>
|
---|
25 | <segtitle>&diskspace;</segtitle>
|
---|
26 |
|
---|
27 | <seglistitem>
|
---|
28 | <seg>&shadow-ch6-sbu;</seg>
|
---|
29 | <seg>&shadow-ch6-du;</seg>
|
---|
30 | </seglistitem>
|
---|
31 | </segmentedlist>
|
---|
32 |
|
---|
33 | </sect2>
|
---|
34 |
|
---|
35 | <sect2 role="installation">
|
---|
36 | <title>Installation of Shadow</title>
|
---|
37 |
|
---|
38 | <note>
|
---|
39 | <para>If you would like to enforce the use of strong passwords, refer to
|
---|
40 | <ulink url="&blfs-root;view/svn/postlfs/cracklib.html"/> for installing
|
---|
41 | Cracklib prior to building Shadow. Then add
|
---|
42 | <parameter>--with-libcrack</parameter> to the <command>configure</command>
|
---|
43 | command below.</para>
|
---|
44 | </note>
|
---|
45 |
|
---|
46 | <para>Fix a bug in the <command>useradd</command> and
|
---|
47 | <command>usermod</command> programs which prevent them from accepting group
|
---|
48 | names rather than group ID numbers to the <option>-g</option> option:</para>
|
---|
49 |
|
---|
50 | <screen><userinput>patch -Np1 -i ../&shadow-useradd-patch;</userinput></screen>
|
---|
51 |
|
---|
52 | <para>Prepare Shadow for compilation:</para>
|
---|
53 |
|
---|
54 | <screen><userinput>./configure --libdir=/lib --sysconfdir=/etc --enable-shared \
|
---|
55 | --without-selinux</userinput></screen>
|
---|
56 |
|
---|
57 | <variablelist>
|
---|
58 | <title>The meaning of the configure options:</title>
|
---|
59 |
|
---|
60 | <varlistentry>
|
---|
61 | <term><parameter>--without-selinux</parameter></term>
|
---|
62 | <listitem>
|
---|
63 | <para>Support for selinux is enabled by default, but selinux is not
|
---|
64 | built in a base LFS system. The <command>configure</command> script
|
---|
65 | will fail if this option is not used.</para>
|
---|
66 | </listitem>
|
---|
67 | </varlistentry>
|
---|
68 |
|
---|
69 | </variablelist>
|
---|
70 |
|
---|
71 | <para>Disable the installation of the <command>groups</command> program
|
---|
72 | and its man pages, as Coreutils provides a better version:</para>
|
---|
73 |
|
---|
74 | <screen><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
|
---|
75 | find man -name Makefile -exec sed -i 's/groups\.1 / /' {} \;</userinput></screen>
|
---|
76 |
|
---|
77 | <para>Disable the installation of Chinese and Korean manual pages, since
|
---|
78 | Man-DB cannot format them properly:</para>
|
---|
79 |
|
---|
80 | <screen><userinput>sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile</userinput></screen>
|
---|
81 |
|
---|
82 | <para>Shadow supplies other manual pages in a UTF-8 encoding. Man-DB
|
---|
83 | can display these in the recommended encodings by using the
|
---|
84 | <command>convert-mans</command> script which we installed.</para>
|
---|
85 |
|
---|
86 | <screen><userinput>for i in de es fi fr id it pt_BR; do
|
---|
87 | convert-mans UTF-8 ISO-8859-1 man/${i}/*.?
|
---|
88 | done
|
---|
89 |
|
---|
90 | for i in cs hu pl; do
|
---|
91 | convert-mans UTF-8 ISO-8859-2 man/${i}/*.?
|
---|
92 | done
|
---|
93 |
|
---|
94 | convert-mans UTF-8 EUC-JP man/ja/*.?
|
---|
95 | convert-mans UTF-8 KOI8-R man/ru/*.?
|
---|
96 | convert-mans UTF-8 ISO-8859-9 man/tr/*.?</userinput></screen>
|
---|
97 |
|
---|
98 | <para id="shadow-login_defs">Instead of using the default
|
---|
99 | <emphasis>crypt</emphasis> method, use the more secure
|
---|
100 | <emphasis>MD5</emphasis> method of password encryption, which also allows
|
---|
101 | passwords longer than 8 characters. It is also necessary to change the
|
---|
102 | obsolete <filename class="directory">/var/spool/mail</filename> location
|
---|
103 | for user mailboxes that Shadow uses by default to the <filename
|
---|
104 | class="directory">/var/mail</filename> location used currently.</para>
|
---|
105 |
|
---|
106 | <screen><userinput>sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
|
---|
107 | -e 's@/var/spool/mail@/var/mail@' etc/login.defs</userinput></screen>
|
---|
108 |
|
---|
109 | <note>
|
---|
110 | <para>If you built Shadow with Cracklib support, run the following:</para>
|
---|
111 |
|
---|
112 | <screen role="nodump"><userinput>sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \
|
---|
113 | etc/login.defs</userinput></screen>
|
---|
114 | </note>
|
---|
115 |
|
---|
116 | <para>Compile the package:</para>
|
---|
117 |
|
---|
118 | <screen><userinput>make</userinput></screen>
|
---|
119 |
|
---|
120 | <para>This package does not come with a test suite.</para>
|
---|
121 |
|
---|
122 | <para>Install the package:</para>
|
---|
123 |
|
---|
124 | <screen><userinput>make install</userinput></screen>
|
---|
125 |
|
---|
126 | <para>Move a misplaced program to its proper location:</para>
|
---|
127 |
|
---|
128 | <screen><userinput>mv -v /usr/bin/passwd /bin</userinput></screen>
|
---|
129 |
|
---|
130 | <para>Move Shadow's libraries to more appropriate locations:</para>
|
---|
131 |
|
---|
132 | <screen><userinput>mv -v /lib/libshadow.*a /usr/lib
|
---|
133 | rm -v /lib/libshadow.so
|
---|
134 | ln -sfv ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 id="conf-shadow" role="configuration">
|
---|
139 | <title>Configuring Shadow</title>
|
---|
140 |
|
---|
141 | <indexterm zone="conf-shadow">
|
---|
142 | <primary sortas="a-Shadow">Shadow</primary>
|
---|
143 | <secondary>configuring</secondary>
|
---|
144 | </indexterm>
|
---|
145 |
|
---|
146 | <para>This package contains utilities to add, modify, and delete users and
|
---|
147 | groups; set and change their passwords; and perform other administrative
|
---|
148 | tasks. For a full explanation of what <emphasis>password shadowing</emphasis>
|
---|
149 | means, see the <filename>doc/HOWTO</filename> file within the unpacked
|
---|
150 | source tree. If using Shadow support, keep in mind that programs which need
|
---|
151 | to verify passwords (display managers, FTP programs, pop3 daemons, etc.)
|
---|
152 | must be Shadow-compliant. That is, they need to be able to work with
|
---|
153 | shadowed passwords.</para>
|
---|
154 |
|
---|
155 | <para>To enable shadowed passwords, run the following command:</para>
|
---|
156 |
|
---|
157 | <screen><userinput>pwconv</userinput></screen>
|
---|
158 |
|
---|
159 | <para>To enable shadowed group passwords, run:</para>
|
---|
160 |
|
---|
161 | <screen><userinput>grpconv</userinput></screen>
|
---|
162 |
|
---|
163 | <para>Shadow's stock configuration for the <command>useradd</command>
|
---|
164 | utility is not suitable for LFS systems. Use the following commands to
|
---|
165 | change the default home directory for new users and prevent the creation of
|
---|
166 | mail spool files:</para>
|
---|
167 |
|
---|
168 | <screen><userinput>useradd -D -b /home
|
---|
169 | sed -i 's/yes/no/' /etc/default/useradd</userinput></screen>
|
---|
170 |
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | <sect2 role="configuration">
|
---|
174 | <title>Setting the root password</title>
|
---|
175 |
|
---|
176 | <para>Choose a password for user <emphasis>root</emphasis> and set it
|
---|
177 | by running:</para>
|
---|
178 |
|
---|
179 | <screen role="nodump"><userinput>passwd root</userinput></screen>
|
---|
180 |
|
---|
181 | </sect2>
|
---|
182 |
|
---|
183 | <sect2 id="contents-shadow" role="content">
|
---|
184 | <title>Contents of Shadow</title>
|
---|
185 |
|
---|
186 | <segmentedlist>
|
---|
187 | <segtitle>Installed programs</segtitle>
|
---|
188 | <segtitle>Installed libraries</segtitle>
|
---|
189 |
|
---|
190 | <seglistitem>
|
---|
191 | <seg>chage, chfn, chgpasswd, chpasswd, chsh, expiry, faillog, gpasswd,
|
---|
192 | groupadd, groupdel, groupmems, groupmod, grpck, grpconv, grpunconv,
|
---|
193 | lastlog, login, logoutd, newgrp, newusers, nologin, passwd, pwck,
|
---|
194 | pwconv, pwunconv, sg (link to newgrp), su, useradd, userdel, usermod,
|
---|
195 | vigr (link to vipw), and vipw</seg>
|
---|
196 | <seg>libshadow.{a,so}</seg>
|
---|
197 | </seglistitem>
|
---|
198 | </segmentedlist>
|
---|
199 |
|
---|
200 | <variablelist>
|
---|
201 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
202 | <?dbfo list-presentation="list"?>
|
---|
203 | <?dbhtml list-presentation="table"?>
|
---|
204 |
|
---|
205 | <varlistentry id="chage">
|
---|
206 | <term><command>chage</command></term>
|
---|
207 | <listitem>
|
---|
208 | <para>Used to change the maximum number of days between obligatory
|
---|
209 | password changes</para>
|
---|
210 | <indexterm zone="ch-system-shadow chage">
|
---|
211 | <primary sortas="b-chage">chage</primary>
|
---|
212 | </indexterm>
|
---|
213 | </listitem>
|
---|
214 | </varlistentry>
|
---|
215 |
|
---|
216 | <varlistentry id="chfn">
|
---|
217 | <term><command>chfn</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>Used to change a user's full name and other information</para>
|
---|
220 | <indexterm zone="ch-system-shadow chfn">
|
---|
221 | <primary sortas="b-chfn">chfn</primary>
|
---|
222 | </indexterm>
|
---|
223 | </listitem>
|
---|
224 | </varlistentry>
|
---|
225 |
|
---|
226 | <varlistentry id="chgpasswd">
|
---|
227 | <term><command>chgpasswd</command></term>
|
---|
228 | <listitem>
|
---|
229 | <para>Used to update group passwords in batch mode</para>
|
---|
230 | <indexterm zone="ch-system-shadow chgpasswd">
|
---|
231 | <primary sortas="b-chgpasswd">chgpasswd</primary>
|
---|
232 | </indexterm>
|
---|
233 | </listitem>
|
---|
234 | </varlistentry>
|
---|
235 |
|
---|
236 | <varlistentry id="chpasswd">
|
---|
237 | <term><command>chpasswd</command></term>
|
---|
238 | <listitem>
|
---|
239 | <para>Used to update user passwords in batch mode</para>
|
---|
240 | <indexterm zone="ch-system-shadow chpasswd">
|
---|
241 | <primary sortas="b-chpasswd">chpasswd</primary>
|
---|
242 | </indexterm>
|
---|
243 | </listitem>
|
---|
244 | </varlistentry>
|
---|
245 |
|
---|
246 | <varlistentry id="chsh">
|
---|
247 | <term><command>chsh</command></term>
|
---|
248 | <listitem>
|
---|
249 | <para>Used to change a user's default login shell</para>
|
---|
250 | <indexterm zone="ch-system-shadow chsh">
|
---|
251 | <primary sortas="b-chsh">chsh</primary>
|
---|
252 | </indexterm>
|
---|
253 | </listitem>
|
---|
254 | </varlistentry>
|
---|
255 |
|
---|
256 | <varlistentry id="expiry">
|
---|
257 | <term><command>expiry</command></term>
|
---|
258 | <listitem>
|
---|
259 | <para>Checks and enforces the current password expiration policy</para>
|
---|
260 | <indexterm zone="ch-system-shadow expiry">
|
---|
261 | <primary sortas="b-expiry">expiry</primary>
|
---|
262 | </indexterm>
|
---|
263 | </listitem>
|
---|
264 | </varlistentry>
|
---|
265 |
|
---|
266 | <varlistentry id="faillog">
|
---|
267 | <term><command>faillog</command></term>
|
---|
268 | <listitem>
|
---|
269 | <para>Is used to examine the log of login failures, to set a maximum
|
---|
270 | number of failures before an account is blocked, or to reset the
|
---|
271 | failure count</para>
|
---|
272 | <indexterm zone="ch-system-shadow faillog">
|
---|
273 | <primary sortas="b-faillog">faillog</primary>
|
---|
274 | </indexterm>
|
---|
275 | </listitem>
|
---|
276 | </varlistentry>
|
---|
277 |
|
---|
278 | <varlistentry id="gpasswd">
|
---|
279 | <term><command>gpasswd</command></term>
|
---|
280 | <listitem>
|
---|
281 | <para>Is used to add and delete members and administrators to
|
---|
282 | groups</para>
|
---|
283 | <indexterm zone="ch-system-shadow gpasswd">
|
---|
284 | <primary sortas="b-gpasswd">gpasswd</primary>
|
---|
285 | </indexterm>
|
---|
286 | </listitem>
|
---|
287 | </varlistentry>
|
---|
288 |
|
---|
289 | <varlistentry id="groupadd">
|
---|
290 | <term><command>groupadd</command></term>
|
---|
291 | <listitem>
|
---|
292 | <para>Creates a group with the given name</para>
|
---|
293 | <indexterm zone="ch-system-shadow groupadd">
|
---|
294 | <primary sortas="b-groupadd">groupadd</primary>
|
---|
295 | </indexterm>
|
---|
296 | </listitem>
|
---|
297 | </varlistentry>
|
---|
298 |
|
---|
299 | <varlistentry id="groupdel">
|
---|
300 | <term><command>groupdel</command></term>
|
---|
301 | <listitem>
|
---|
302 | <para>Deletes the group with the given name</para>
|
---|
303 | <indexterm zone="ch-system-shadow groupdel">
|
---|
304 | <primary sortas="b-groupdel">groupdel</primary>
|
---|
305 | </indexterm>
|
---|
306 | </listitem>
|
---|
307 | </varlistentry>
|
---|
308 |
|
---|
309 | <varlistentry id="groupmems">
|
---|
310 | <term><command>groupmems</command></term>
|
---|
311 | <listitem>
|
---|
312 | <para>Allows a user to administer his/her own group membership list
|
---|
313 | without the requirement of super user privileges.</para>
|
---|
314 | <indexterm zone="ch-system-shadow groupmems">
|
---|
315 | <primary sortas="b-groupmems">groupmems</primary>
|
---|
316 | </indexterm>
|
---|
317 | </listitem>
|
---|
318 | </varlistentry>
|
---|
319 |
|
---|
320 | <varlistentry id="groupmod">
|
---|
321 | <term><command>groupmod</command></term>
|
---|
322 | <listitem>
|
---|
323 | <para>Is used to modify the given group's name or GID</para>
|
---|
324 | <indexterm zone="ch-system-shadow groupmod">
|
---|
325 | <primary sortas="b-groupmod">groupmod</primary>
|
---|
326 | </indexterm>
|
---|
327 | </listitem>
|
---|
328 | </varlistentry>
|
---|
329 |
|
---|
330 | <varlistentry id="grpck">
|
---|
331 | <term><command>grpck</command></term>
|
---|
332 | <listitem>
|
---|
333 | <para>Verifies the integrity of the group files
|
---|
334 | <filename>/etc/group</filename> and
|
---|
335 | <filename>/etc/gshadow</filename></para>
|
---|
336 | <indexterm zone="ch-system-shadow grpck">
|
---|
337 | <primary sortas="b-grpck">grpck</primary>
|
---|
338 | </indexterm>
|
---|
339 | </listitem>
|
---|
340 | </varlistentry>
|
---|
341 |
|
---|
342 | <varlistentry id="grpconv">
|
---|
343 | <term><command>grpconv</command></term>
|
---|
344 | <listitem>
|
---|
345 | <para>Creates or updates the shadow group file from the normal
|
---|
346 | group file</para>
|
---|
347 | <indexterm zone="ch-system-shadow grpconv">
|
---|
348 | <primary sortas="b-grpconv">grpconv</primary>
|
---|
349 | </indexterm>
|
---|
350 | </listitem>
|
---|
351 | </varlistentry>
|
---|
352 |
|
---|
353 | <varlistentry id="grpunconv">
|
---|
354 | <term><command>grpunconv</command></term>
|
---|
355 | <listitem>
|
---|
356 | <para>Updates <filename>/etc/group</filename> from
|
---|
357 | <filename>/etc/gshadow</filename> and then deletes the latter</para>
|
---|
358 | <indexterm zone="ch-system-shadow grpunconv">
|
---|
359 | <primary sortas="b-grpunconv">grpunconv</primary>
|
---|
360 | </indexterm>
|
---|
361 | </listitem>
|
---|
362 | </varlistentry>
|
---|
363 |
|
---|
364 | <varlistentry id="lastlog">
|
---|
365 | <term><command>lastlog</command></term>
|
---|
366 | <listitem>
|
---|
367 | <para>Reports the most recent login of all users or of a
|
---|
368 | given user</para>
|
---|
369 | <indexterm zone="ch-system-shadow lastlog">
|
---|
370 | <primary sortas="b-lastlog">lastlog</primary>
|
---|
371 | </indexterm>
|
---|
372 | </listitem>
|
---|
373 | </varlistentry>
|
---|
374 |
|
---|
375 | <varlistentry id="login">
|
---|
376 | <term><command>login</command></term>
|
---|
377 | <listitem>
|
---|
378 | <para>Is used by the system to let users sign on</para>
|
---|
379 | <indexterm zone="ch-system-shadow login">
|
---|
380 | <primary sortas="b-login">login</primary>
|
---|
381 | </indexterm>
|
---|
382 | </listitem>
|
---|
383 | </varlistentry>
|
---|
384 |
|
---|
385 | <varlistentry id="logoutd">
|
---|
386 | <term><command>logoutd</command></term>
|
---|
387 | <listitem>
|
---|
388 | <para>Is a daemon used to enforce restrictions on log-on time
|
---|
389 | and ports</para>
|
---|
390 | <indexterm zone="ch-system-shadow logoutd">
|
---|
391 | <primary sortas="b-logoutd">logoutd</primary>
|
---|
392 | </indexterm>
|
---|
393 | </listitem>
|
---|
394 | </varlistentry>
|
---|
395 |
|
---|
396 | <varlistentry id="newgrp">
|
---|
397 | <term><command>newgrp</command></term>
|
---|
398 | <listitem>
|
---|
399 | <para>Is used to change the current GID during a login session</para>
|
---|
400 | <indexterm zone="ch-system-shadow newgrp">
|
---|
401 | <primary sortas="b-newgrp">newgrp</primary>
|
---|
402 | </indexterm>
|
---|
403 | </listitem>
|
---|
404 | </varlistentry>
|
---|
405 |
|
---|
406 | <varlistentry id="newusers">
|
---|
407 | <term><command>newusers</command></term>
|
---|
408 | <listitem>
|
---|
409 | <para>Is used to create or update an entire series of user
|
---|
410 | accounts</para>
|
---|
411 | <indexterm zone="ch-system-shadow newusers">
|
---|
412 | <primary sortas="b-newusers">newusers</primary>
|
---|
413 | </indexterm>
|
---|
414 | </listitem>
|
---|
415 | </varlistentry>
|
---|
416 |
|
---|
417 | <varlistentry id="nologin">
|
---|
418 | <term><command>nologin</command></term>
|
---|
419 | <listitem>
|
---|
420 | <para>Displays a message that an account is not available. Designed
|
---|
421 | to be used as the default shell for accounts that have been
|
---|
422 | disabled</para>
|
---|
423 | <indexterm zone="ch-system-shadow nologin">
|
---|
424 | <primary sortas="b-nologin">nologin</primary>
|
---|
425 | </indexterm>
|
---|
426 | </listitem>
|
---|
427 | </varlistentry>
|
---|
428 |
|
---|
429 | <varlistentry id="passwd">
|
---|
430 | <term><command>passwd</command></term>
|
---|
431 | <listitem>
|
---|
432 | <para>Is used to change the password for a user or group account</para>
|
---|
433 | <indexterm zone="ch-system-shadow passwd">
|
---|
434 | <primary sortas="b-passwd">passwd</primary>
|
---|
435 | </indexterm>
|
---|
436 | </listitem>
|
---|
437 | </varlistentry>
|
---|
438 |
|
---|
439 | <varlistentry id="pwck">
|
---|
440 | <term><command>pwck</command></term>
|
---|
441 | <listitem>
|
---|
442 | <para>Verifies the integrity of the password files
|
---|
443 | <filename>/etc/passwd</filename> and
|
---|
444 | <filename>/etc/shadow</filename></para>
|
---|
445 | <indexterm zone="ch-system-shadow pwck">
|
---|
446 | <primary sortas="b-pwck">pwck</primary>
|
---|
447 | </indexterm>
|
---|
448 | </listitem>
|
---|
449 | </varlistentry>
|
---|
450 |
|
---|
451 | <varlistentry id="pwconv">
|
---|
452 | <term><command>pwconv</command></term>
|
---|
453 | <listitem>
|
---|
454 | <para>Creates or updates the shadow password file from the normal
|
---|
455 | password file</para>
|
---|
456 | <indexterm zone="ch-system-shadow pwconv">
|
---|
457 | <primary sortas="b-pwconv">pwconv</primary>
|
---|
458 | </indexterm>
|
---|
459 | </listitem>
|
---|
460 | </varlistentry>
|
---|
461 |
|
---|
462 | <varlistentry id="pwunconv">
|
---|
463 | <term><command>pwunconv</command></term>
|
---|
464 | <listitem>
|
---|
465 | <para>Updates <filename>/etc/passwd</filename> from
|
---|
466 | <filename>/etc/shadow</filename> and then deletes the latter</para>
|
---|
467 | <indexterm zone="ch-system-shadow pwunconv">
|
---|
468 | <primary sortas="b-pwunconv">pwunconv</primary>
|
---|
469 | </indexterm>
|
---|
470 | </listitem>
|
---|
471 | </varlistentry>
|
---|
472 |
|
---|
473 | <varlistentry id="sg">
|
---|
474 | <term><command>sg</command></term>
|
---|
475 | <listitem>
|
---|
476 | <para>Executes a given command while the user's GID
|
---|
477 | is set to that of the given group</para>
|
---|
478 | <indexterm zone="ch-system-shadow sg">
|
---|
479 | <primary sortas="b-sg">sg</primary>
|
---|
480 | </indexterm>
|
---|
481 | </listitem>
|
---|
482 | </varlistentry>
|
---|
483 |
|
---|
484 | <varlistentry id="su">
|
---|
485 | <term><command>su</command></term>
|
---|
486 | <listitem>
|
---|
487 | <para>Runs a shell with substitute user and group IDs</para>
|
---|
488 | <indexterm zone="ch-system-shadow su">
|
---|
489 | <primary sortas="b-su">su</primary>
|
---|
490 | </indexterm>
|
---|
491 | </listitem>
|
---|
492 | </varlistentry>
|
---|
493 |
|
---|
494 | <varlistentry id="useradd">
|
---|
495 | <term><command>useradd</command></term>
|
---|
496 | <listitem>
|
---|
497 | <para>Creates a new user with the given name, or updates the default
|
---|
498 | new-user information</para>
|
---|
499 | <indexterm zone="ch-system-shadow useradd">
|
---|
500 | <primary sortas="b-useradd">useradd</primary>
|
---|
501 | </indexterm>
|
---|
502 | </listitem>
|
---|
503 | </varlistentry>
|
---|
504 |
|
---|
505 | <varlistentry id="userdel">
|
---|
506 | <term><command>userdel</command></term>
|
---|
507 | <listitem>
|
---|
508 | <para>Deletes the given user account</para>
|
---|
509 | <indexterm zone="ch-system-shadow userdel">
|
---|
510 | <primary sortas="b-userdel">userdel</primary>
|
---|
511 | </indexterm>
|
---|
512 | </listitem>
|
---|
513 | </varlistentry>
|
---|
514 |
|
---|
515 | <varlistentry id="usermod">
|
---|
516 | <term><command>usermod</command></term>
|
---|
517 | <listitem>
|
---|
518 | <para>Is used to modify the given user's login name, User
|
---|
519 | Identification (UID), shell, initial group, home directory, etc.</para>
|
---|
520 | <indexterm zone="ch-system-shadow usermod">
|
---|
521 | <primary sortas="b-usermod">usermod</primary>
|
---|
522 | </indexterm>
|
---|
523 | </listitem>
|
---|
524 | </varlistentry>
|
---|
525 |
|
---|
526 | <varlistentry id="vigr">
|
---|
527 | <term><command>vigr</command></term>
|
---|
528 | <listitem>
|
---|
529 | <para>Edits the <filename>/etc/group</filename> or
|
---|
530 | <filename>/etc/gshadow</filename> files</para>
|
---|
531 | <indexterm zone="ch-system-shadow vigr">
|
---|
532 | <primary sortas="b-vigr">vigr</primary>
|
---|
533 | </indexterm>
|
---|
534 | </listitem>
|
---|
535 | </varlistentry>
|
---|
536 |
|
---|
537 | <varlistentry id="vipw">
|
---|
538 | <term><command>vipw</command></term>
|
---|
539 | <listitem>
|
---|
540 | <para>Edits the <filename>/etc/passwd</filename> or
|
---|
541 | <filename>/etc/shadow</filename> files</para>
|
---|
542 | <indexterm zone="ch-system-shadow vipw">
|
---|
543 | <primary sortas="b-vipw">vipw</primary>
|
---|
544 | </indexterm>
|
---|
545 | </listitem>
|
---|
546 | </varlistentry>
|
---|
547 |
|
---|
548 | <varlistentry id="libshadow">
|
---|
549 | <term><filename class="libraryfile">libshadow</filename></term>
|
---|
550 | <listitem>
|
---|
551 | <para>Contains functions used by most programs in this package</para>
|
---|
552 | <indexterm zone="ch-system-shadow libshadow">
|
---|
553 | <primary sortas="c-libshadow">libshadow</primary>
|
---|
554 | </indexterm>
|
---|
555 | </listitem>
|
---|
556 | </varlistentry>
|
---|
557 |
|
---|
558 | </variablelist>
|
---|
559 |
|
---|
560 | </sect2>
|
---|
561 |
|
---|
562 | </sect1>
|
---|