[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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-shadow" xreflabel="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,
|
---|
| 25 | Diffutils, GCC, Gettext, Glibc, Grep, Make, Sed</seg></seglistitem>
|
---|
| 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 |
|
---|
[d0a6c4c] | 36 | <para>Work around a problem that prevents Shadow's internationalization from
|
---|
| 37 | working:</para>
|
---|
[73aedd1d] | 38 |
|
---|
[cd0c92d6] | 39 | <screen><userinput>echo '#define HAVE_SETLOCALE 1' >> config.h</userinput></screen>
|
---|
[73aedd1d] | 40 |
|
---|
[9dfc02f] | 41 | <para>Shadow incorrectly declares the malloc() function, causing compilation
|
---|
| 42 | failure. Fix this:</para>
|
---|
| 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 |
|
---|
[673b0d8] | 50 | <para>Then install it:</para>
|
---|
[73aedd1d] | 51 |
|
---|
| 52 | <screen><userinput>make install</userinput></screen>
|
---|
| 53 |
|
---|
| 54 | <para>Shadow uses two files to configure authentication settings for the
|
---|
| 55 | system. Install these two config files:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
|
---|
| 58 |
|
---|
[c21999c6] | 59 | <para>Instead of using the default <emphasis>crypt</emphasis> method, we want
|
---|
| 60 | to use the more secure <emphasis>MD5</emphasis> method of password encryption,
|
---|
[673b0d8] | 61 | which also allows passwords longer than 8 characters. We also need to
|
---|
[c21999c6] | 62 | change the obsolete <filename class="directory">/var/spool/mail</filename>
|
---|
[673b0d8] | 63 | location for user mailboxes that Shadow uses by default to the <filename
|
---|
| 64 | class="directory">/var/mail</filename> location used currently. We accomplish
|
---|
[c21999c6] | 65 | both these things by changing the relevant configuration file while copying it
|
---|
| 66 | to its destination (it's probably better to cut-and-paste this rather than try
|
---|
| 67 | and type it all in):</para>
|
---|
| 68 |
|
---|
[2ec4b60] | 69 | <screen><userinput>cp etc/login.defs.linux /etc/login.defs
|
---|
| 70 | sed -i -e 's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
|
---|
[8dffa04] | 71 | -e 's@/var/spool/mail@/var/mail@' /etc/login.defs</userinput></screen>
|
---|
[73aedd1d] | 72 |
|
---|
[6820da0] | 73 | <para>Move some misplaced symlinks/programs to their proper locations:</para>
|
---|
[73aedd1d] | 74 |
|
---|
[d0a6c4c] | 75 | <screen><userinput>mv /bin/sg /usr/bin
|
---|
[6820da0] | 76 | mv /bin/vigr /usr/sbin
|
---|
| 77 | mv /usr/bin/passwd /bin</userinput></screen>
|
---|
[73aedd1d] | 78 |
|
---|
| 79 | <para>And move Shadow's dynamic libraries to a more appropriate location:</para>
|
---|
| 80 |
|
---|
| 81 | <screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <para>As some packages expect to find the just-moved libraries in
|
---|
[8ad7980] | 84 | <filename class="directory">/usr/lib</filename>, create the following symlinks:</para>
|
---|
[73aedd1d] | 85 |
|
---|
| 86 | <screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so
|
---|
| 87 | ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen>
|
---|
| 88 |
|
---|
[8ad7980] | 89 | <para>The <parameter>-D</parameter> option of the <command>useradd</command> program requires this
|
---|
[638a816e] | 90 | directory for it to work properly:</para>
|
---|
| 91 |
|
---|
| 92 | <screen><userinput>mkdir /etc/default</userinput></screen>
|
---|
| 93 |
|
---|
[90e3cb3] | 94 | <para>Coreutils has already installed a better <command>groups</command>
|
---|
[c21999c6] | 95 | program in <filename class="directory">/usr/bin</filename>. Remove the one
|
---|
| 96 | installed by Shadow:</para>
|
---|
[73aedd1d] | 97 |
|
---|
| 98 | <screen><userinput>rm /bin/groups</userinput></screen>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
[24351aa] | 101 |
|
---|
[2309b72] | 102 |
|
---|
[df8334f] | 103 | <sect2 id="conf-shadow" role="configuration"><title>Configuring Shadow</title>
|
---|
[673b0d8] | 104 | <indexterm zone="conf-shadow">
|
---|
| 105 | <primary sortas="a-Shadow">Shadow</primary>
|
---|
| 106 | <secondary>configuring</secondary></indexterm>
|
---|
[2309b72] | 107 |
|
---|
[c21999c6] | 108 | <para>This package contains utilities to add, modify and delete users and
|
---|
| 109 | groups, set and change their passwords, and other such administrative tasks.
|
---|
| 110 | For a full explanation of what <emphasis>password shadowing</emphasis> means,
|
---|
| 111 | see the <filename>doc/HOWTO</filename> file within the unpacked source tree.
|
---|
| 112 | There's one thing to keep in mind if you decide to use Shadow support: programs
|
---|
| 113 | that need to verify passwords (display managers, ftp programs, pop3 daemons,
|
---|
| 114 | and the like) need to be <emphasis>shadow-compliant</emphasis>, that is they
|
---|
| 115 | need to be able to work with shadowed passwords.</para>
|
---|
[2309b72] | 116 |
|
---|
| 117 | <para>To enable shadowed passwords, run the following command:</para>
|
---|
| 118 |
|
---|
[cd1ddd7] | 119 | <screen><userinput>pwconv</userinput></screen>
|
---|
[2309b72] | 120 |
|
---|
[673b0d8] | 121 | <para>To enable shadowed group passwords, run:</para>
|
---|
[2309b72] | 122 |
|
---|
[cd1ddd7] | 123 | <screen><userinput>grpconv</userinput></screen>
|
---|
[2309b72] | 124 |
|
---|
| 125 | <para>Under normal circumstances, you won't have created any passwords yet.
|
---|
[c21999c6] | 126 | However, if returning to this section later to enable shadowing, you should
|
---|
| 127 | reset any current user passwords with the <command>passwd</command> command or
|
---|
| 128 | any group passwords with the <command>gpasswd</command> command.</para>
|
---|
| 129 |
|
---|
[2309b72] | 130 | </sect2>
|
---|
| 131 |
|
---|
[c21999c6] | 132 |
|
---|
[df8334f] | 133 | <sect2 role="configuration">
|
---|
[2309b72] | 134 | <title>Setting the root password</title>
|
---|
| 135 |
|
---|
| 136 | <para>Choose a password for user root and set it via:</para>
|
---|
| 137 |
|
---|
| 138 | <screen><userinput>passwd root</userinput></screen>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
[24351aa] | 141 |
|
---|
[5888299] | 142 |
|
---|
[c6cb3aa] | 143 | <sect2 id="contents-shadow" role="content"><title>Contents of Shadow</title>
|
---|
[673b0d8] | 144 |
|
---|
[c6cb3aa] | 145 | <segmentedlist>
|
---|
| 146 | <segtitle>Installed programs</segtitle>
|
---|
[35ee31b] | 147 | <seglistitem><seg>chage, chfn, chpasswd, chsh, expiry, faillog, gpasswd,
|
---|
| 148 | groupadd, groupdel, groupmod, groups, grpck, grpconv, grpunconv, lastlog, login,
|
---|
| 149 | logoutd, mkpasswd, newgrp, newusers, passwd, pwck, pwconv, pwunconv, sg
|
---|
| 150 | (link to newgrp), useradd, userdel, usermod, vigr (link to vipw) and vipw</seg>
|
---|
| 151 | </seglistitem>
|
---|
[c6cb3aa] | 152 | </segmentedlist>
|
---|
[673b0d8] | 153 |
|
---|
[c6cb3aa] | 154 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 155 |
|
---|
[b8a819f] | 156 | <varlistentry id="chage">
|
---|
| 157 | <term><command>chage</command></term>
|
---|
[c6cb3aa] | 158 | <listitem>
|
---|
[673b0d8] | 159 | <indexterm zone="ch-system-shadow chage"><primary sortas="b-chage">chage</primary></indexterm>
|
---|
[c6cb3aa] | 160 | <para>is used to change the maximum number of
|
---|
[673b0d8] | 161 | days between obligatory password changes.</para>
|
---|
[c6cb3aa] | 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
[673b0d8] | 164 |
|
---|
[b8a819f] | 165 | <varlistentry id="chfn">
|
---|
| 166 | <term><command>chfn</command></term>
|
---|
[c6cb3aa] | 167 | <listitem>
|
---|
[673b0d8] | 168 | <indexterm zone="ch-system-shadow chfn"><primary sortas="b-chfn">chfn</primary></indexterm>
|
---|
[c6cb3aa] | 169 | <para>is used to change a user's full name and some other info.</para>
|
---|
| 170 | </listitem>
|
---|
| 171 | </varlistentry>
|
---|
[673b0d8] | 172 |
|
---|
[b8a819f] | 173 | <varlistentry id="chpasswd">
|
---|
| 174 | <term><command>chpasswd</command></term>
|
---|
[c6cb3aa] | 175 | <listitem>
|
---|
[673b0d8] | 176 | <indexterm zone="ch-system-shadow chpasswd"><primary sortas="b-chpasswd">chpasswd</primary></indexterm>
|
---|
[c6cb3aa] | 177 | <para>is used to update the passwords of a
|
---|
[673b0d8] | 178 | whole series of user accounts in one go.</para>
|
---|
[c6cb3aa] | 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
[673b0d8] | 181 |
|
---|
[b8a819f] | 182 | <varlistentry id="chsh">
|
---|
| 183 | <term><command>chsh</command></term>
|
---|
[c6cb3aa] | 184 | <listitem>
|
---|
[673b0d8] | 185 | <indexterm zone="ch-system-shadow chsh"><primary sortas="b-chsh">chsh</primary></indexterm>
|
---|
[c6cb3aa] | 186 | <para>is used to change a user's default login shell.</para>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
[673b0d8] | 189 |
|
---|
[b8a819f] | 190 | <varlistentry id="expiry">
|
---|
| 191 | <term><command>expiry</command></term>
|
---|
[c6cb3aa] | 192 | <listitem>
|
---|
[673b0d8] | 193 | <indexterm zone="ch-system-shadow expiry"><primary sortas="b-expiry">expiry</primary></indexterm>
|
---|
[c6cb3aa] | 194 | <para>checks and enforces the current password expiration policy.</para>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
[673b0d8] | 197 |
|
---|
[b8a819f] | 198 | <varlistentry id="faillog">
|
---|
| 199 | <term><command>faillog</command></term>
|
---|
[c6cb3aa] | 200 | <listitem>
|
---|
[673b0d8] | 201 | <indexterm zone="ch-system-shadow faillog"><primary sortas="b-faillog">faillog</primary></indexterm>
|
---|
[c6cb3aa] | 202 | <para>is used to examine the log of login failures, to set a maximum number of
|
---|
| 203 | failures before an account is blocked, or to reset the failure count.</para>
|
---|
| 204 | </listitem>
|
---|
| 205 | </varlistentry>
|
---|
| 206 |
|
---|
[b8a819f] | 207 | <varlistentry id="gpasswd">
|
---|
| 208 | <term><command>gpasswd</command></term>
|
---|
[c6cb3aa] | 209 | <listitem>
|
---|
[673b0d8] | 210 | <indexterm zone="ch-system-shadow gpasswd"><primary sortas="b-gpasswd">gpasswd</primary></indexterm>
|
---|
[c6cb3aa] | 211 | <para>is used to add and delete members and administrators to groups.</para>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
[673b0d8] | 214 |
|
---|
[b8a819f] | 215 | <varlistentry id="groupadd">
|
---|
| 216 | <term><command>groupadd</command></term>
|
---|
[c6cb3aa] | 217 | <listitem>
|
---|
[673b0d8] | 218 | <indexterm zone="ch-system-shadow groupadd"><primary sortas="b-groupadd">groupadd</primary></indexterm>
|
---|
[c6cb3aa] | 219 | <para>creates a group with the given name.</para>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
[673b0d8] | 222 |
|
---|
[b8a819f] | 223 | <varlistentry id="groupdel">
|
---|
| 224 | <term><command>groupdel</command></term>
|
---|
[c6cb3aa] | 225 | <listitem>
|
---|
[673b0d8] | 226 | <indexterm zone="ch-system-shadow groupdel"><primary sortas="b-groupdel">groupdel</primary></indexterm>
|
---|
[c6cb3aa] | 227 | <para>deletes the group with the given name.</para>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
[673b0d8] | 230 |
|
---|
[b8a819f] | 231 | <varlistentry id="groupmod">
|
---|
| 232 | <term><command>groupmod</command></term>
|
---|
[c6cb3aa] | 233 | <listitem>
|
---|
[673b0d8] | 234 | <indexterm zone="ch-system-shadow groupmod"><primary sortas="b-groupmod">groupmod</primary></indexterm>
|
---|
[c6cb3aa] | 235 | <para>is used to modify the given group's name or GID.</para>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
[673b0d8] | 238 |
|
---|
[b8a819f] | 239 | <varlistentry id="groups">
|
---|
| 240 | <term><command>groups</command></term>
|
---|
[c6cb3aa] | 241 | <listitem>
|
---|
[673b0d8] | 242 | <indexterm zone="ch-system-shadow groups"><primary sortas="b-groups">groups</primary></indexterm>
|
---|
[c6cb3aa] | 243 | <para>reports the groups of which the given users are members.</para>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
[673b0d8] | 246 |
|
---|
[b8a819f] | 247 | <varlistentry id="grpck">
|
---|
| 248 | <term><command>grpck</command></term>
|
---|
[c6cb3aa] | 249 | <listitem>
|
---|
[673b0d8] | 250 | <indexterm zone="ch-system-shadow grpck"><primary sortas="b-grpck">grpck</primary></indexterm>
|
---|
[c6cb3aa] | 251 | <para>verifies the integrity of the group files, <filename>/etc/group</filename>
|
---|
| 252 | and <filename>/etc/gshadow</filename>.</para>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
[b8a819f] | 256 | <varlistentry id="grpconv">
|
---|
| 257 | <term><command>grpconv</command></term>
|
---|
[c6cb3aa] | 258 | <listitem>
|
---|
[673b0d8] | 259 | <indexterm zone="ch-system-shadow grpconv"><primary sortas="b-grpconv">grpconv</primary></indexterm>
|
---|
[c6cb3aa] | 260 | <para>creates or updates the shadow group file from the normal group file.</para>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
[673b0d8] | 263 |
|
---|
[b8a819f] | 264 | <varlistentry id="grpunconv">
|
---|
| 265 | <term><command>grpunconv</command></term>
|
---|
[c6cb3aa] | 266 | <listitem>
|
---|
[673b0d8] | 267 | <indexterm zone="ch-system-shadow grpunconv"><primary sortas="b-grpunconv">grpunconv</primary></indexterm>
|
---|
[c6cb3aa] | 268 | <para>updates <filename>/etc/group</filename>
|
---|
[673b0d8] | 269 | from <filename>/etc/gshadow</filename> and then deletes the latter.</para>
|
---|
[c6cb3aa] | 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
[673b0d8] | 272 |
|
---|
[b8a819f] | 273 | <varlistentry id="lastlog">
|
---|
| 274 | <term><command>lastlog</command></term>
|
---|
[c6cb3aa] | 275 | <listitem>
|
---|
[673b0d8] | 276 | <indexterm zone="ch-system-shadow lastlog"><primary sortas="b-lastlog">lastlog</primary></indexterm>
|
---|
[c6cb3aa] | 277 | <para>reports the most recent login of all users, or of a given user.</para>
|
---|
| 278 | </listitem>
|
---|
| 279 | </varlistentry>
|
---|
[73aedd1d] | 280 |
|
---|
[b8a819f] | 281 | <varlistentry id="login">
|
---|
| 282 | <term><command>login</command></term>
|
---|
[c6cb3aa] | 283 | <listitem>
|
---|
[673b0d8] | 284 | <indexterm zone="ch-system-shadow login"><primary sortas="b-login">login</primary></indexterm>
|
---|
[c6cb3aa] | 285 | <para>is used by the system to let users sign on.</para>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
[673b0d8] | 288 |
|
---|
[b8a819f] | 289 | <varlistentry id="logoutd">
|
---|
| 290 | <term><command>logoutd</command></term>
|
---|
[c6cb3aa] | 291 | <listitem>
|
---|
[673b0d8] | 292 | <indexterm zone="ch-system-shadow logoutd"><primary sortas="b-logoutd">logoutd</primary></indexterm>
|
---|
[c6cb3aa] | 293 | <para>is a daemon used to enforce restrictions on log-on time and ports.</para>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
[673b0d8] | 296 |
|
---|
[b8a819f] | 297 | <varlistentry id="mkpasswd">
|
---|
| 298 | <term><command>mkpasswd</command></term>
|
---|
[c6cb3aa] | 299 | <listitem>
|
---|
[673b0d8] | 300 | <indexterm zone="ch-system-shadow mkpasswd"><primary sortas="b-mkpasswd">mkpasswd</primary></indexterm>
|
---|
[c6cb3aa] | 301 | <para>encrypts the given password using the also given perturbation.</para>
|
---|
| 302 | </listitem>
|
---|
| 303 | </varlistentry>
|
---|
[673b0d8] | 304 |
|
---|
[b8a819f] | 305 | <varlistentry id="newgrp">
|
---|
| 306 | <term><command>newgrp</command></term>
|
---|
[c6cb3aa] | 307 | <listitem>
|
---|
[673b0d8] | 308 | <indexterm zone="ch-system-shadow newgrp"><primary sortas="b-newgrp">newgrp</primary></indexterm>
|
---|
[c6cb3aa] | 309 | <para>is used to change the current GID during a login session.</para>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
[673b0d8] | 312 |
|
---|
[b8a819f] | 313 | <varlistentry id="newusers">
|
---|
| 314 | <term><command>newusers</command></term>
|
---|
[c6cb3aa] | 315 | <listitem>
|
---|
[673b0d8] | 316 | <indexterm zone="ch-system-shadow newusers"><primary sortas="b-newusers">newusers</primary></indexterm>
|
---|
[c6cb3aa] | 317 | <para>is used to create or update a whole series of user accounts in one go.</para>
|
---|
| 318 | </listitem>
|
---|
| 319 | </varlistentry>
|
---|
[673b0d8] | 320 |
|
---|
[b8a819f] | 321 | <varlistentry id="passwd">
|
---|
| 322 | <term><command>passwd</command></term>
|
---|
[c6cb3aa] | 323 | <listitem>
|
---|
[673b0d8] | 324 | <indexterm zone="ch-system-shadow passwd"><primary sortas="b-passwd">passwd</primary></indexterm>
|
---|
[c6cb3aa] | 325 | <para>is used to change the password for a user or group account.</para>
|
---|
| 326 | </listitem>
|
---|
| 327 | </varlistentry>
|
---|
[673b0d8] | 328 |
|
---|
[b8a819f] | 329 | <varlistentry id="pwck">
|
---|
| 330 | <term><command>pwck</command></term>
|
---|
[c6cb3aa] | 331 | <listitem>
|
---|
[673b0d8] | 332 | <indexterm zone="ch-system-shadow pwck"><primary sortas="b-pwck">pwck</primary></indexterm>
|
---|
[c6cb3aa] | 333 | <para>verifies the integrity of the password files,
|
---|
[673b0d8] | 334 | <filename>/etc/passwd</filename> and <filename>/etc/shadow</filename>.</para>
|
---|
[c6cb3aa] | 335 | </listitem>
|
---|
| 336 | </varlistentry>
|
---|
[673b0d8] | 337 |
|
---|
[b8a819f] | 338 | <varlistentry id="pwconv">
|
---|
| 339 | <term><command>pwconv</command></term>
|
---|
[c6cb3aa] | 340 | <listitem>
|
---|
[673b0d8] | 341 | <indexterm zone="ch-system-shadow pwconv"><primary sortas="b-pwconv">pwconv</primary></indexterm>
|
---|
[c6cb3aa] | 342 | <para>creates or updates the shadow password file
|
---|
[673b0d8] | 343 | from the normal password file.</para>
|
---|
[c6cb3aa] | 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
[673b0d8] | 346 |
|
---|
[b8a819f] | 347 | <varlistentry id="pwunconv">
|
---|
| 348 | <term><command>pwunconv</command></term>
|
---|
[c6cb3aa] | 349 | <listitem>
|
---|
[673b0d8] | 350 | <indexterm zone="ch-system-shadow pwunconv"><primary sortas="b-pwunconv">pwunconv</primary></indexterm>
|
---|
[c6cb3aa] | 351 | <para>updates <filename>/etc/passwd</filename>
|
---|
[673b0d8] | 352 | from <filename>/etc/shadow</filename> and then deletes the latter.</para>
|
---|
[c6cb3aa] | 353 | </listitem>
|
---|
| 354 | </varlistentry>
|
---|
[673b0d8] | 355 |
|
---|
[b8a819f] | 356 | <varlistentry id="sg">
|
---|
| 357 | <term><command>sg</command></term>
|
---|
[c6cb3aa] | 358 | <listitem>
|
---|
[673b0d8] | 359 | <indexterm zone="ch-system-shadow sg"><primary sortas="b-sg">sg</primary></indexterm>
|
---|
[c6cb3aa] | 360 | <para>executes a given command while the user's GID
|
---|
[673b0d8] | 361 | is set to that of the given group.</para>
|
---|
[c6cb3aa] | 362 | </listitem>
|
---|
| 363 | </varlistentry>
|
---|
[673b0d8] | 364 |
|
---|
[b8a819f] | 365 | <varlistentry id="useradd">
|
---|
| 366 | <term><command>useradd</command></term>
|
---|
[c6cb3aa] | 367 | <listitem>
|
---|
[673b0d8] | 368 | <indexterm zone="ch-system-shadow useradd"><primary sortas="b-useradd">useradd</primary></indexterm>
|
---|
[c6cb3aa] | 369 | <para>creates a new user with the given name,
|
---|
[673b0d8] | 370 | or updates the default new-user information.</para>
|
---|
[c6cb3aa] | 371 | </listitem>
|
---|
| 372 | </varlistentry>
|
---|
[673b0d8] | 373 |
|
---|
[b8a819f] | 374 | <varlistentry id="userdel">
|
---|
| 375 | <term><command>userdel</command></term>
|
---|
[c6cb3aa] | 376 | <listitem>
|
---|
[673b0d8] | 377 | <indexterm zone="ch-system-shadow userdel"><primary sortas="b-userdel">userdel</primary></indexterm>
|
---|
[c6cb3aa] | 378 | <para>deletes the given user account.</para>
|
---|
| 379 | </listitem>
|
---|
| 380 | </varlistentry>
|
---|
[673b0d8] | 381 |
|
---|
[b8a819f] | 382 | <varlistentry id="usermod">
|
---|
| 383 | <term><command>usermod</command></term>
|
---|
[c6cb3aa] | 384 | <listitem>
|
---|
[673b0d8] | 385 | <indexterm zone="ch-system-shadow usermod"><primary sortas="b-usermod">usermod</primary></indexterm>
|
---|
[c6cb3aa] | 386 | <para>is used to modify the given user's login name, UID (User Identification),
|
---|
| 387 | shell, initial group, home directory, and the like.</para>
|
---|
| 388 | </listitem>
|
---|
| 389 | </varlistentry>
|
---|
| 390 |
|
---|
[b8a819f] | 391 | <varlistentry id="vigr">
|
---|
| 392 | <term><command>vigr</command></term>
|
---|
[c6cb3aa] | 393 | <listitem>
|
---|
[673b0d8] | 394 | <indexterm zone="ch-system-shadow vigr"><primary sortas="b-vigr">vigr</primary></indexterm>
|
---|
[c6cb3aa] | 395 | <para>can be used to edit the <filename>/etc/group</filename> or
|
---|
| 396 | <filename>/etc/gshadow</filename> files.</para>
|
---|
| 397 | </listitem>
|
---|
| 398 | </varlistentry>
|
---|
| 399 |
|
---|
[b8a819f] | 400 | <varlistentry id="vipw">
|
---|
| 401 | <term><command>vipw</command></term>
|
---|
[c6cb3aa] | 402 | <listitem>
|
---|
[673b0d8] | 403 | <indexterm zone="ch-system-shadow vipw"><primary sortas="b-vipw">vipw</primary></indexterm>
|
---|
[c6cb3aa] | 404 | <para>can be used to edit the <filename>/etc/passwd</filename> or
|
---|
| 405 | <filename>/etc/shadow</filename> files.</para>
|
---|
| 406 | </listitem>
|
---|
| 407 | </varlistentry>
|
---|
| 408 |
|
---|
[b8a819f] | 409 | <varlistentry id="libmisc">
|
---|
[8ad7980] | 410 | <term><filename class="libraryfile">libmisc</filename></term>
|
---|
[c6cb3aa] | 411 | <listitem>
|
---|
[673b0d8] | 412 | <indexterm zone="ch-system-shadow libmisc"><primary sortas="c-libmisc">libmisc</primary></indexterm>
|
---|
[c6cb3aa] | 413 | <para>...</para>
|
---|
| 414 | </listitem>
|
---|
| 415 | </varlistentry>
|
---|
[673b0d8] | 416 |
|
---|
[b8a819f] | 417 | <varlistentry id="libshadow">
|
---|
[8ad7980] | 418 | <term><filename class="libraryfile">libshadow</filename></term>
|
---|
[c6cb3aa] | 419 | <listitem>
|
---|
[673b0d8] | 420 | <indexterm zone="ch-system-shadow libshadow"><primary sortas="c-libshadow">libshadow</primary></indexterm>
|
---|
[c6cb3aa] | 421 | <para>contains functions used by most programs in this package.</para>
|
---|
| 422 | </listitem>
|
---|
| 423 | </varlistentry>
|
---|
| 424 | </variablelist>
|
---|
[673b0d8] | 425 |
|
---|
| 426 | </sect2>
|
---|
| 427 |
|
---|
| 428 | </sect1>
|
---|