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