[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[752f4e5] | 6 | <sect1 id="ch-system-shadow" role="wrap">
|
---|
[673b0d8] | 7 | <title>Shadow-&shadow-version;</title>
|
---|
| 8 | <?dbhtml filename="shadow.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-shadow"><primary sortas="a-Shadow">Shadow</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Shadow package contains programs for handling passwords in a secure
|
---|
| 14 | way.</para>
|
---|
| 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.4 SBU</seg><seg>11 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[a001133] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Shadow installation depends on</segtitle>
|
---|
| 24 | <seglistitem><seg>Bash, Binutils, Bison, Coreutils,
|
---|
[69993f4] | 25 | Diffutils, GCC, Gettext, Glibc, Grep, Make, and Sed</seg></seglistitem>
|
---|
[a001133] | 26 | </segmentedlist>
|
---|
| 27 | </sect2>
|
---|
[3554fa3a] | 28 |
|
---|
[a001133] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Shadow</title>
|
---|
| 31 |
|
---|
[6820da0] | 32 | <para>Prepare Shadow for compilation:</para>
|
---|
[73aedd1d] | 33 |
|
---|
[d0a6c4c] | 34 | <screen><userinput>./configure --libdir=/usr/lib --enable-shared</userinput></screen>
|
---|
[73aedd1d] | 35 |
|
---|
[ef13657] | 36 | <para>Work around a problem that prevents Shadow's
|
---|
| 37 | internationalization from working:</para>
|
---|
[73aedd1d] | 38 |
|
---|
[cd0c92d6] | 39 | <screen><userinput>echo '#define HAVE_SETLOCALE 1' >> config.h</userinput></screen>
|
---|
[73aedd1d] | 40 |
|
---|
[ef13657] | 41 | <para>Shadow incorrectly declares the malloc() function, causing
|
---|
| 42 | compilation failure. Fix this:</para>
|
---|
[9dfc02f] | 43 |
|
---|
| 44 | <screen><userinput>sed -i '/extern char/d' libmisc/xmalloc.c</userinput></screen>
|
---|
| 45 |
|
---|
[73aedd1d] | 46 | <para>Compile the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make</userinput></screen>
|
---|
| 49 |
|
---|
[ef13657] | 50 | <para>Install the package:</para>
|
---|
[73aedd1d] | 51 |
|
---|
| 52 | <screen><userinput>make install</userinput></screen>
|
---|
| 53 |
|
---|
[b7e8981] | 54 | <para id="shadow-limits-login_access">Shadow uses two files to configure
|
---|
| 55 | authentication settings for the system. Install these two config files:</para>
|
---|
| 56 |
|
---|
[a75acee] | 57 | <indexterm zone="shadow-limits-login_access"><primary sortas="e-/etc/limits">/etc/limits</primary></indexterm>
|
---|
[b7e8981] | 58 | <indexterm zone="shadow-limits-login_access"><primary sortas="e-/etc/login.access">/etc/login.access</primary></indexterm>
|
---|
[73aedd1d] | 59 |
|
---|
| 60 | <screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
|
---|
| 61 |
|
---|
[38bb44a] | 62 | <beginpage/>
|
---|
[b7e8981] | 63 | <para id="shadow-login_defs">Instead of using the default <emphasis>crypt</emphasis> method,
|
---|
[ef13657] | 64 | use the more secure <emphasis>MD5</emphasis> method of password
|
---|
| 65 | encryption, which also allows passwords longer than 8 characters. It
|
---|
| 66 | is also necessary to change the obsolete <filename
|
---|
| 67 | class="directory">/var/spool/mail</filename> location for user
|
---|
| 68 | mailboxes that Shadow uses by default to the <filename
|
---|
| 69 | class="directory">/var/mail</filename> location used currently. Both
|
---|
| 70 | of these can be accomplished by changing the relevant configuration
|
---|
| 71 | file while copying it to its destination:</para>
|
---|
[c21999c6] | 72 |
|
---|
[b7e8981] | 73 | <indexterm zone="shadow-login_defs"><primary sortas="e-/etc/login.defs">/etc/login.defs</primary></indexterm>
|
---|
| 74 |
|
---|
[2ec4b60] | 75 | <screen><userinput>cp etc/login.defs.linux /etc/login.defs
|
---|
| 76 | sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
|
---|
[8dffa04] | 77 | -e 's@/var/spool/mail@/var/mail@' /etc/login.defs</userinput></screen>
|
---|
[73aedd1d] | 78 |
|
---|
[ef13657] | 79 | <para>Move some misplaced symlinks/programs to their proper
|
---|
| 80 | locations:</para>
|
---|
[73aedd1d] | 81 |
|
---|
[d0a6c4c] | 82 | <screen><userinput>mv /bin/sg /usr/bin
|
---|
[6820da0] | 83 | mv /bin/vigr /usr/sbin
|
---|
| 84 | mv /usr/bin/passwd /bin</userinput></screen>
|
---|
[73aedd1d] | 85 |
|
---|
[ef13657] | 86 | <para>Move Shadow's dynamic libraries to a more appropriate
|
---|
| 87 | location:</para>
|
---|
[73aedd1d] | 88 |
|
---|
| 89 | <screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen>
|
---|
| 90 |
|
---|
[ef13657] | 91 | <para>Because some packages expect to find the just-moved libraries in
|
---|
| 92 | <filename class="directory">/usr/lib</filename>, create the following
|
---|
| 93 | symlinks:</para>
|
---|
[73aedd1d] | 94 |
|
---|
| 95 | <screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so
|
---|
| 96 | ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen>
|
---|
| 97 |
|
---|
[ef13657] | 98 | <para>The <parameter>-D</parameter> option of the
|
---|
| 99 | <command>useradd</command> program requires the <filename
|
---|
| 100 | class="directory">/etc/default</filename> directory for it to work
|
---|
| 101 | properly:</para>
|
---|
[638a816e] | 102 |
|
---|
| 103 | <screen><userinput>mkdir /etc/default</userinput></screen>
|
---|
| 104 |
|
---|
[ef13657] | 105 | <para>Coreutils has already installed a better
|
---|
| 106 | <command>groups</command> program in <filename
|
---|
| 107 | class="directory">/usr/bin</filename>. Remove the one installed by
|
---|
| 108 | Shadow:</para>
|
---|
[73aedd1d] | 109 |
|
---|
| 110 | <screen><userinput>rm /bin/groups</userinput></screen>
|
---|
[2256873] | 111 | <beginpage/>
|
---|
[73aedd1d] | 112 | </sect2>
|
---|
[24351aa] | 113 |
|
---|
[2309b72] | 114 |
|
---|
[df8334f] | 115 | <sect2 id="conf-shadow" role="configuration"><title>Configuring Shadow</title>
|
---|
[673b0d8] | 116 | <indexterm zone="conf-shadow">
|
---|
| 117 | <primary sortas="a-Shadow">Shadow</primary>
|
---|
| 118 | <secondary>configuring</secondary></indexterm>
|
---|
[2309b72] | 119 |
|
---|
[ef13657] | 120 | <para>This package contains utilities to add, modify, and delete users
|
---|
| 121 | and groups; set and change their passwords; and perform other
|
---|
| 122 | administrative tasks. For a full explanation of what
|
---|
| 123 | <emphasis>password shadowing</emphasis> means, see the
|
---|
| 124 | <filename>doc/HOWTO</filename> file within the unpacked source tree.
|
---|
| 125 | If using Shadow support, keep in mind that programs which need to
|
---|
[69993f4] | 126 | verify passwords (display managers, FTP programs, pop3 daemons, etc.)
|
---|
| 127 | must be shadow-compliant. That is, they need to be able to work with
|
---|
[ef13657] | 128 | shadowed passwords.</para>
|
---|
[2309b72] | 129 |
|
---|
| 130 | <para>To enable shadowed passwords, run the following command:</para>
|
---|
| 131 |
|
---|
[cd1ddd7] | 132 | <screen><userinput>pwconv</userinput></screen>
|
---|
[2309b72] | 133 |
|
---|
[673b0d8] | 134 | <para>To enable shadowed group passwords, run:</para>
|
---|
[2309b72] | 135 |
|
---|
[cd1ddd7] | 136 | <screen><userinput>grpconv</userinput></screen>
|
---|
[2309b72] | 137 |
|
---|
[ef13657] | 138 | <para>Under normal circumstances, passwords will not have been created
|
---|
| 139 | yet. However, if returning to this section later to enable shadowing,
|
---|
| 140 | reset any current user passwords with the <command>passwd</command>
|
---|
| 141 | command or any group passwords with the <command>gpasswd</command>
|
---|
| 142 | command.</para>
|
---|
[c21999c6] | 143 |
|
---|
[2309b72] | 144 | </sect2>
|
---|
| 145 |
|
---|
[c21999c6] | 146 |
|
---|
[df8334f] | 147 | <sect2 role="configuration">
|
---|
[2309b72] | 148 | <title>Setting the root password</title>
|
---|
| 149 |
|
---|
[ef13657] | 150 | <para>Choose a password for user <emphasis>root</emphasis> and set it
|
---|
| 151 | by running:</para>
|
---|
[2309b72] | 152 |
|
---|
| 153 | <screen><userinput>passwd root</userinput></screen>
|
---|
[2256873] | 154 | <beginpage/>
|
---|
[2309b72] | 155 | </sect2>
|
---|
[24351aa] | 156 |
|
---|
[5888299] | 157 |
|
---|
[c6cb3aa] | 158 | <sect2 id="contents-shadow" role="content"><title>Contents of Shadow</title>
|
---|
[673b0d8] | 159 |
|
---|
[c6cb3aa] | 160 | <segmentedlist>
|
---|
| 161 | <segtitle>Installed programs</segtitle>
|
---|
[69993f4] | 162 | <segtitle>Installed libraries</segtitle>
|
---|
[35ee31b] | 163 | <seglistitem><seg>chage, chfn, chpasswd, chsh, expiry, faillog, gpasswd,
|
---|
| 164 | groupadd, groupdel, groupmod, groups, grpck, grpconv, grpunconv, lastlog, login,
|
---|
| 165 | logoutd, mkpasswd, newgrp, newusers, passwd, pwck, pwconv, pwunconv, sg
|
---|
[69993f4] | 166 | (link to newgrp), useradd, userdel, usermod, vigr (link to vipw), and vipw</seg>
|
---|
| 167 | <seg>libshadow[.a,so]</seg>
|
---|
[35ee31b] | 168 | </seglistitem>
|
---|
[c6cb3aa] | 169 | </segmentedlist>
|
---|
[673b0d8] | 170 |
|
---|
[2256873] | 171 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
[3ed279f] | 172 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 173 |
|
---|
[b8a819f] | 174 | <varlistentry id="chage">
|
---|
| 175 | <term><command>chage</command></term>
|
---|
[c6cb3aa] | 176 | <listitem>
|
---|
[2256873] | 177 | <para>Used to change the maximum number of days between obligatory
|
---|
| 178 | password changes</para>
|
---|
[3ed279f] | 179 | <indexterm zone="ch-system-shadow chage"><primary sortas="b-chage">chage</primary></indexterm>
|
---|
[c6cb3aa] | 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
[673b0d8] | 182 |
|
---|
[b8a819f] | 183 | <varlistentry id="chfn">
|
---|
| 184 | <term><command>chfn</command></term>
|
---|
[c6cb3aa] | 185 | <listitem>
|
---|
[2256873] | 186 | <para>Used to change a user's full name and other info</para>
|
---|
[3ed279f] | 187 | <indexterm zone="ch-system-shadow chfn"><primary sortas="b-chfn">chfn</primary></indexterm>
|
---|
[c6cb3aa] | 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
[673b0d8] | 190 |
|
---|
[b8a819f] | 191 | <varlistentry id="chpasswd">
|
---|
| 192 | <term><command>chpasswd</command></term>
|
---|
[c6cb3aa] | 193 | <listitem>
|
---|
[2256873] | 194 | <para>Used to update the passwords of an entire series of user
|
---|
| 195 | accounts</para>
|
---|
[3ed279f] | 196 | <indexterm zone="ch-system-shadow chpasswd"><primary sortas="b-chpasswd">chpasswd</primary></indexterm>
|
---|
[c6cb3aa] | 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
[673b0d8] | 199 |
|
---|
[b8a819f] | 200 | <varlistentry id="chsh">
|
---|
| 201 | <term><command>chsh</command></term>
|
---|
[c6cb3aa] | 202 | <listitem>
|
---|
[2256873] | 203 | <para>Used to change a user's default login shell</para>
|
---|
[3ed279f] | 204 | <indexterm zone="ch-system-shadow chsh"><primary sortas="b-chsh">chsh</primary></indexterm>
|
---|
[c6cb3aa] | 205 | </listitem>
|
---|
| 206 | </varlistentry>
|
---|
[673b0d8] | 207 |
|
---|
[b8a819f] | 208 | <varlistentry id="expiry">
|
---|
| 209 | <term><command>expiry</command></term>
|
---|
[c6cb3aa] | 210 | <listitem>
|
---|
[2256873] | 211 | <para>Checks and enforces the current password expiration policy</para>
|
---|
[3ed279f] | 212 | <indexterm zone="ch-system-shadow expiry"><primary sortas="b-expiry">expiry</primary></indexterm>
|
---|
[c6cb3aa] | 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[673b0d8] | 215 |
|
---|
[b8a819f] | 216 | <varlistentry id="faillog">
|
---|
| 217 | <term><command>faillog</command></term>
|
---|
[c6cb3aa] | 218 | <listitem>
|
---|
[2256873] | 219 | <para>Is used to examine the log of login failures, to set a maximum number of
|
---|
| 220 | failures before an account is blocked, or to reset the failure count</para>
|
---|
[3ed279f] | 221 | <indexterm zone="ch-system-shadow faillog"><primary sortas="b-faillog">faillog</primary></indexterm>
|
---|
[c6cb3aa] | 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
[b8a819f] | 225 | <varlistentry id="gpasswd">
|
---|
| 226 | <term><command>gpasswd</command></term>
|
---|
[c6cb3aa] | 227 | <listitem>
|
---|
[2256873] | 228 | <para>Is used to add and delete members and administrators to groups</para>
|
---|
[3ed279f] | 229 | <indexterm zone="ch-system-shadow gpasswd"><primary sortas="b-gpasswd">gpasswd</primary></indexterm>
|
---|
[c6cb3aa] | 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
[673b0d8] | 232 |
|
---|
[b8a819f] | 233 | <varlistentry id="groupadd">
|
---|
| 234 | <term><command>groupadd</command></term>
|
---|
[c6cb3aa] | 235 | <listitem>
|
---|
[2256873] | 236 | <para>Creates a group with the given name</para>
|
---|
[3ed279f] | 237 | <indexterm zone="ch-system-shadow groupadd"><primary sortas="b-groupadd">groupadd</primary></indexterm>
|
---|
[c6cb3aa] | 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
[673b0d8] | 240 |
|
---|
[b8a819f] | 241 | <varlistentry id="groupdel">
|
---|
| 242 | <term><command>groupdel</command></term>
|
---|
[c6cb3aa] | 243 | <listitem>
|
---|
[2256873] | 244 | <para>Deletes the group with the given name</para>
|
---|
[3ed279f] | 245 | <indexterm zone="ch-system-shadow groupdel"><primary sortas="b-groupdel">groupdel</primary></indexterm>
|
---|
[c6cb3aa] | 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
[673b0d8] | 248 |
|
---|
[b8a819f] | 249 | <varlistentry id="groupmod">
|
---|
| 250 | <term><command>groupmod</command></term>
|
---|
[c6cb3aa] | 251 | <listitem>
|
---|
[2256873] | 252 | <para>Is used to modify the given group's name or GID</para>
|
---|
[3ed279f] | 253 | <indexterm zone="ch-system-shadow groupmod"><primary sortas="b-groupmod">groupmod</primary></indexterm>
|
---|
[c6cb3aa] | 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
[673b0d8] | 256 |
|
---|
[b8a819f] | 257 | <varlistentry id="groups">
|
---|
| 258 | <term><command>groups</command></term>
|
---|
[c6cb3aa] | 259 | <listitem>
|
---|
[2256873] | 260 | <para>Reports the groups of which the given users are members</para>
|
---|
[3ed279f] | 261 | <indexterm zone="ch-system-shadow groups"><primary sortas="b-groups">groups</primary></indexterm>
|
---|
[c6cb3aa] | 262 | </listitem>
|
---|
| 263 | </varlistentry>
|
---|
[673b0d8] | 264 |
|
---|
[b8a819f] | 265 | <varlistentry id="grpck">
|
---|
| 266 | <term><command>grpck</command></term>
|
---|
[c6cb3aa] | 267 | <listitem>
|
---|
[2256873] | 268 | <para>Verifies the integrity of the group files <filename>/etc/group</filename>
|
---|
| 269 | and <filename>/etc/gshadow</filename></para>
|
---|
[b7e8981] | 270 | <indexterm zone="ch-system-shadow grpck"><primary sortas="b-grpck">grpck</primary></indexterm>
|
---|
[c6cb3aa] | 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
[b8a819f] | 274 | <varlistentry id="grpconv">
|
---|
| 275 | <term><command>grpconv</command></term>
|
---|
[c6cb3aa] | 276 | <listitem>
|
---|
[2256873] | 277 | <para>Creates or updates the shadow group file from the normal group file</para>
|
---|
[3ed279f] | 278 | <indexterm zone="ch-system-shadow grpconv"><primary sortas="b-grpconv">grpconv</primary></indexterm>
|
---|
[c6cb3aa] | 279 | </listitem>
|
---|
| 280 | </varlistentry>
|
---|
[673b0d8] | 281 |
|
---|
[b8a819f] | 282 | <varlistentry id="grpunconv">
|
---|
| 283 | <term><command>grpunconv</command></term>
|
---|
[c6cb3aa] | 284 | <listitem>
|
---|
[2256873] | 285 | <para>Updates <filename>/etc/group</filename>
|
---|
| 286 | from <filename>/etc/gshadow</filename> and then deletes the latter</para>
|
---|
[3ed279f] | 287 | <indexterm zone="ch-system-shadow grpunconv"><primary sortas="b-grpunconv">grpunconv</primary></indexterm>
|
---|
[c6cb3aa] | 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
[673b0d8] | 290 |
|
---|
[b8a819f] | 291 | <varlistentry id="lastlog">
|
---|
| 292 | <term><command>lastlog</command></term>
|
---|
[c6cb3aa] | 293 | <listitem>
|
---|
[2256873] | 294 | <para>Reports the most recent login of all users or of a given user</para>
|
---|
[3ed279f] | 295 | <indexterm zone="ch-system-shadow lastlog"><primary sortas="b-lastlog">lastlog</primary></indexterm>
|
---|
[c6cb3aa] | 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
[73aedd1d] | 298 |
|
---|
[b8a819f] | 299 | <varlistentry id="login">
|
---|
| 300 | <term><command>login</command></term>
|
---|
[c6cb3aa] | 301 | <listitem>
|
---|
[2256873] | 302 | <para>Is used by the system to let users sign on</para>
|
---|
[3ed279f] | 303 | <indexterm zone="ch-system-shadow login"><primary sortas="b-login">login</primary></indexterm>
|
---|
[c6cb3aa] | 304 | </listitem>
|
---|
| 305 | </varlistentry>
|
---|
[673b0d8] | 306 |
|
---|
[b8a819f] | 307 | <varlistentry id="logoutd">
|
---|
| 308 | <term><command>logoutd</command></term>
|
---|
[c6cb3aa] | 309 | <listitem>
|
---|
[2256873] | 310 | <para>Is a daemon used to enforce restrictions on log-on time and ports</para>
|
---|
[3ed279f] | 311 | <indexterm zone="ch-system-shadow logoutd"><primary sortas="b-logoutd">logoutd</primary></indexterm>
|
---|
[c6cb3aa] | 312 | </listitem>
|
---|
| 313 | </varlistentry>
|
---|
[673b0d8] | 314 |
|
---|
[b8a819f] | 315 | <varlistentry id="mkpasswd">
|
---|
| 316 | <term><command>mkpasswd</command></term>
|
---|
[c6cb3aa] | 317 | <listitem>
|
---|
[2256873] | 318 | <para>Generates random passwords</para>
|
---|
[3ed279f] | 319 | <indexterm zone="ch-system-shadow mkpasswd"><primary sortas="b-mkpasswd">mkpasswd</primary></indexterm>
|
---|
[c6cb3aa] | 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
[673b0d8] | 322 |
|
---|
[b8a819f] | 323 | <varlistentry id="newgrp">
|
---|
| 324 | <term><command>newgrp</command></term>
|
---|
[c6cb3aa] | 325 | <listitem>
|
---|
[2256873] | 326 | <para>Is used to change the current GID during a login session</para>
|
---|
[3ed279f] | 327 | <indexterm zone="ch-system-shadow newgrp"><primary sortas="b-newgrp">newgrp</primary></indexterm>
|
---|
[c6cb3aa] | 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
[673b0d8] | 330 |
|
---|
[b8a819f] | 331 | <varlistentry id="newusers">
|
---|
| 332 | <term><command>newusers</command></term>
|
---|
[c6cb3aa] | 333 | <listitem>
|
---|
[2256873] | 334 | <para>Is used to create or update an entire series of user accounts</para>
|
---|
[3ed279f] | 335 | <indexterm zone="ch-system-shadow newusers"><primary sortas="b-newusers">newusers</primary></indexterm>
|
---|
[c6cb3aa] | 336 | </listitem>
|
---|
| 337 | </varlistentry>
|
---|
[673b0d8] | 338 |
|
---|
[b8a819f] | 339 | <varlistentry id="passwd">
|
---|
| 340 | <term><command>passwd</command></term>
|
---|
[c6cb3aa] | 341 | <listitem>
|
---|
[2256873] | 342 | <para>Is used to change the password for a user or group account</para>
|
---|
[3ed279f] | 343 | <indexterm zone="ch-system-shadow passwd"><primary sortas="b-passwd">passwd</primary></indexterm>
|
---|
[c6cb3aa] | 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
[673b0d8] | 346 |
|
---|
[b8a819f] | 347 | <varlistentry id="pwck">
|
---|
| 348 | <term><command>pwck</command></term>
|
---|
[c6cb3aa] | 349 | <listitem>
|
---|
[2256873] | 350 | <para>Verifies the integrity of the password files
|
---|
| 351 | <filename>/etc/passwd</filename> and <filename>/etc/shadow</filename></para>
|
---|
[3ed279f] | 352 | <indexterm zone="ch-system-shadow pwck"><primary sortas="b-pwck">pwck</primary></indexterm>
|
---|
[c6cb3aa] | 353 | </listitem>
|
---|
| 354 | </varlistentry>
|
---|
[673b0d8] | 355 |
|
---|
[b8a819f] | 356 | <varlistentry id="pwconv">
|
---|
| 357 | <term><command>pwconv</command></term>
|
---|
[c6cb3aa] | 358 | <listitem>
|
---|
[2256873] | 359 | <para>Creates or updates the shadow password file from the normal
|
---|
| 360 | password file</para>
|
---|
[3ed279f] | 361 | <indexterm zone="ch-system-shadow pwconv"><primary sortas="b-pwconv">pwconv</primary></indexterm>
|
---|
[c6cb3aa] | 362 | </listitem>
|
---|
| 363 | </varlistentry>
|
---|
[673b0d8] | 364 |
|
---|
[b8a819f] | 365 | <varlistentry id="pwunconv">
|
---|
| 366 | <term><command>pwunconv</command></term>
|
---|
[c6cb3aa] | 367 | <listitem>
|
---|
[2256873] | 368 | <para>Updates <filename>/etc/passwd</filename>
|
---|
| 369 | from <filename>/etc/shadow</filename> and then deletes the latter</para>
|
---|
[3ed279f] | 370 | <indexterm zone="ch-system-shadow pwunconv"><primary sortas="b-pwunconv">pwunconv</primary></indexterm>
|
---|
[c6cb3aa] | 371 | </listitem>
|
---|
| 372 | </varlistentry>
|
---|
[673b0d8] | 373 |
|
---|
[b8a819f] | 374 | <varlistentry id="sg">
|
---|
| 375 | <term><command>sg</command></term>
|
---|
[c6cb3aa] | 376 | <listitem>
|
---|
[2256873] | 377 | <para>Executes a given command while the user's GID
|
---|
| 378 | is set to that of the given group</para>
|
---|
[3ed279f] | 379 | <indexterm zone="ch-system-shadow sg"><primary sortas="b-sg">sg</primary></indexterm>
|
---|
[c6cb3aa] | 380 | </listitem>
|
---|
| 381 | </varlistentry>
|
---|
[673b0d8] | 382 |
|
---|
[7624c05] | 383 | <varlistentry id="su">
|
---|
| 384 | <term><command>su</command></term>
|
---|
| 385 | <listitem>
|
---|
| 386 | <indexterm zone="ch-system-shadow su"><primary sortas="b-su">su</primary></indexterm>
|
---|
[2256873] | 387 | <para>Runs a shell with substitute user and group IDs</para>
|
---|
[7624c05] | 388 | </listitem>
|
---|
| 389 | </varlistentry>
|
---|
| 390 |
|
---|
[b8a819f] | 391 | <varlistentry id="useradd">
|
---|
| 392 | <term><command>useradd</command></term>
|
---|
[c6cb3aa] | 393 | <listitem>
|
---|
[2256873] | 394 | <para>Creates a new user with the given name, or updates the default
|
---|
| 395 | new-user information</para>
|
---|
[3ed279f] | 396 | <indexterm zone="ch-system-shadow useradd"><primary sortas="b-useradd">useradd</primary></indexterm>
|
---|
[c6cb3aa] | 397 | </listitem>
|
---|
| 398 | </varlistentry>
|
---|
[673b0d8] | 399 |
|
---|
[b8a819f] | 400 | <varlistentry id="userdel">
|
---|
| 401 | <term><command>userdel</command></term>
|
---|
[c6cb3aa] | 402 | <listitem>
|
---|
[2256873] | 403 | <para>Deletes the given user account</para>
|
---|
[3ed279f] | 404 | <indexterm zone="ch-system-shadow userdel"><primary sortas="b-userdel">userdel</primary></indexterm>
|
---|
[c6cb3aa] | 405 | </listitem>
|
---|
| 406 | </varlistentry>
|
---|
[673b0d8] | 407 |
|
---|
[b8a819f] | 408 | <varlistentry id="usermod">
|
---|
| 409 | <term><command>usermod</command></term>
|
---|
[c6cb3aa] | 410 | <listitem>
|
---|
[2256873] | 411 | <para>Is used to modify the given user's login name, User
|
---|
[69993f4] | 412 | Identification (UID),
|
---|
[ef13657] | 413 | shell, initial group, home directory, etc.</para>
|
---|
[3ed279f] | 414 | <indexterm zone="ch-system-shadow usermod"><primary sortas="b-usermod">usermod</primary></indexterm>
|
---|
[c6cb3aa] | 415 | </listitem>
|
---|
| 416 | </varlistentry>
|
---|
| 417 |
|
---|
[b8a819f] | 418 | <varlistentry id="vigr">
|
---|
| 419 | <term><command>vigr</command></term>
|
---|
[c6cb3aa] | 420 | <listitem>
|
---|
[2256873] | 421 | <para>Edits the <filename>/etc/group</filename> or
|
---|
| 422 | <filename>/etc/gshadow</filename> files</para>
|
---|
[3ed279f] | 423 | <indexterm zone="ch-system-shadow vigr"><primary sortas="b-vigr">vigr</primary></indexterm>
|
---|
[c6cb3aa] | 424 | </listitem>
|
---|
| 425 | </varlistentry>
|
---|
| 426 |
|
---|
[b8a819f] | 427 | <varlistentry id="vipw">
|
---|
| 428 | <term><command>vipw</command></term>
|
---|
[c6cb3aa] | 429 | <listitem>
|
---|
[2256873] | 430 | <para>Edits the <filename>/etc/passwd</filename> or
|
---|
| 431 | <filename>/etc/shadow</filename> files</para>
|
---|
[3ed279f] | 432 | <indexterm zone="ch-system-shadow vipw"><primary sortas="b-vipw">vipw</primary></indexterm>
|
---|
[c6cb3aa] | 433 | </listitem>
|
---|
| 434 | </varlistentry>
|
---|
| 435 |
|
---|
[b8a819f] | 436 | <varlistentry id="libshadow">
|
---|
[8ad7980] | 437 | <term><filename class="libraryfile">libshadow</filename></term>
|
---|
[c6cb3aa] | 438 | <listitem>
|
---|
[2256873] | 439 | <para>Contains functions used by most programs in this package</para>
|
---|
[3ed279f] | 440 | <indexterm zone="ch-system-shadow libshadow"><primary sortas="c-libshadow">libshadow</primary></indexterm>
|
---|
[c6cb3aa] | 441 | </listitem>
|
---|
| 442 | </varlistentry>
|
---|
| 443 | </variablelist>
|
---|
[673b0d8] | 444 |
|
---|
| 445 | </sect2>
|
---|
| 446 |
|
---|
| 447 | </sect1>
|
---|
[ef13657] | 448 |
|
---|