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