[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Contents</title>
|
---|
| 3 |
|
---|
[b822811] | 4 | <para>The Shadow Password Suite contains the chage, chfn, chsh, expiry,
|
---|
[6370fa6] | 5 | faillog, gpasswd, lastlog, login, newgrp, passwd, sg, su, chpasswd,
|
---|
| 6 | dpasswd, groupadd, groupdel, groupmod, grpck, grpconv, grpunconv, logoutd,
|
---|
| 7 | mkpasswd, newusers, pwck, pwconv, pwunconv, useradd, userdel, usermod
|
---|
[b822811] | 8 | and vipw programs.</para>
|
---|
[6370fa6] | 9 |
|
---|
| 10 | </sect2>
|
---|
| 11 |
|
---|
| 12 | <sect2><title>Description</title>
|
---|
| 13 |
|
---|
| 14 | <sect3><title>chage</title>
|
---|
| 15 |
|
---|
[b822811] | 16 | <para>chage changes the number of days between password changes and the date of
|
---|
| 17 | the last password change.</para>
|
---|
[6370fa6] | 18 |
|
---|
| 19 | </sect3>
|
---|
| 20 |
|
---|
| 21 | <sect3><title>chfn</title>
|
---|
| 22 |
|
---|
[b822811] | 23 | <para>chfn changes user full name, office number, office extension, and home
|
---|
| 24 | phone number information for a user's account.</para>
|
---|
[6370fa6] | 25 |
|
---|
| 26 | </sect3>
|
---|
| 27 |
|
---|
| 28 | <sect3><title>chsh</title>
|
---|
| 29 |
|
---|
[b822811] | 30 | <para>chsh changes the user login shell.</para>
|
---|
[6370fa6] | 31 |
|
---|
| 32 | </sect3>
|
---|
| 33 |
|
---|
| 34 | <sect3><title>expiry</title>
|
---|
| 35 |
|
---|
[b822811] | 36 | <para>Checks and enforces password expiration policy.</para>
|
---|
[6370fa6] | 37 |
|
---|
| 38 | </sect3>
|
---|
| 39 |
|
---|
| 40 | <sect3><title>faillog</title>
|
---|
| 41 |
|
---|
[b822811] | 42 | <para>faillog formats the contents of the failure log,/var/log/faillog, and
|
---|
| 43 | maintains failure counts and limits.</para>
|
---|
[6370fa6] | 44 |
|
---|
| 45 | </sect3>
|
---|
| 46 |
|
---|
| 47 | <sect3><title>gpasswd</title>
|
---|
| 48 |
|
---|
[b822811] | 49 | <para>gpasswd is used to administer the /etc/group file</para>
|
---|
[6370fa6] | 50 |
|
---|
| 51 | </sect3>
|
---|
| 52 |
|
---|
| 53 | <sect3><title>lastlog</title>
|
---|
| 54 |
|
---|
[b822811] | 55 | <para>lastlog formats and prints the contents of the last login log,
|
---|
| 56 | /var/log/lastlog. The login-name, port, and last login time will be
|
---|
| 57 | printed.</para>
|
---|
[6370fa6] | 58 |
|
---|
| 59 | </sect3>
|
---|
| 60 |
|
---|
| 61 | <sect3><title>login</title>
|
---|
| 62 |
|
---|
[b822811] | 63 | <para>login is used to establish a new session with the system.</para>
|
---|
[6370fa6] | 64 |
|
---|
| 65 | </sect3>
|
---|
| 66 |
|
---|
| 67 | <sect3><title>newgrp</title>
|
---|
| 68 |
|
---|
[b822811] | 69 | <para>newgrp is used to change the current group ID during a
|
---|
| 70 | login session.</para>
|
---|
[6370fa6] | 71 |
|
---|
| 72 | </sect3>
|
---|
| 73 |
|
---|
| 74 | <sect3><title>passwd</title>
|
---|
| 75 |
|
---|
[b822811] | 76 | <para>passwd changes passwords for user and group accounts.</para>
|
---|
[6370fa6] | 77 |
|
---|
| 78 | </sect3>
|
---|
| 79 |
|
---|
| 80 | <sect3><title>sg</title>
|
---|
| 81 |
|
---|
[b822811] | 82 | <para>sg executes command as a different group ID.</para>
|
---|
[6370fa6] | 83 |
|
---|
| 84 | </sect3>
|
---|
| 85 |
|
---|
| 86 | <sect3><title>su</title>
|
---|
| 87 |
|
---|
[b822811] | 88 | <para>Change the effective user id and group id to that of a user. This
|
---|
| 89 | replaces the su programs that's installed from the Shellutils package.</para>
|
---|
[6370fa6] | 90 |
|
---|
| 91 | </sect3>
|
---|
| 92 |
|
---|
| 93 | <sect3><title>chpasswd</title>
|
---|
| 94 |
|
---|
[b822811] | 95 | <para>chpasswd reads a file of user name and password pairs from standard
|
---|
| 96 | input and uses this information to update a group of existing users.</para>
|
---|
[6370fa6] | 97 |
|
---|
| 98 | </sect3>
|
---|
| 99 |
|
---|
| 100 | <sect3><title>dpasswd</title>
|
---|
| 101 |
|
---|
[b822811] | 102 | <para>dpasswd adds, deletes, and updates dial-up passwords for
|
---|
| 103 | user login shells.</para>
|
---|
[6370fa6] | 104 |
|
---|
| 105 | </sect3>
|
---|
| 106 |
|
---|
| 107 | <sect3><title>groupadd</title>
|
---|
| 108 |
|
---|
[b822811] | 109 | <para>The groupadd command creates a new group account using the values
|
---|
| 110 | specified on the command line and the default values from the system.</para>
|
---|
[6370fa6] | 111 |
|
---|
| 112 | </sect3>
|
---|
| 113 |
|
---|
| 114 | <sect3><title>groupdel</title>
|
---|
| 115 |
|
---|
[b822811] | 116 | <para>The groupdel command modifies the system account files, deleting all
|
---|
| 117 | entries that refer to group.</para>
|
---|
[6370fa6] | 118 |
|
---|
| 119 | </sect3>
|
---|
| 120 |
|
---|
| 121 | <sect3><title>groupmod</title>
|
---|
| 122 |
|
---|
[b822811] | 123 | <para>The groupmod command modifies the system account files to reflect the
|
---|
| 124 | changes that are specified on the command line.</para>
|
---|
[6370fa6] | 125 |
|
---|
| 126 | </sect3>
|
---|
| 127 |
|
---|
| 128 | <sect3><title>grpck</title>
|
---|
| 129 |
|
---|
[b822811] | 130 | <para>grpck verifies the integrity of the system authentication
|
---|
| 131 | information.</para>
|
---|
[6370fa6] | 132 |
|
---|
| 133 | </sect3>
|
---|
| 134 |
|
---|
| 135 | <sect3><title>grpconv</title>
|
---|
| 136 |
|
---|
[b822811] | 137 | <para>grpunconv converts to shadow group files from normal group files.</para>
|
---|
[6370fa6] | 138 |
|
---|
| 139 | </sect3>
|
---|
| 140 |
|
---|
| 141 | <sect3><title>grpunconv</title>
|
---|
| 142 |
|
---|
[b822811] | 143 | <para>grpunconv converts from shadow group files to normal group files.</para>
|
---|
[6370fa6] | 144 |
|
---|
| 145 | </sect3>
|
---|
| 146 |
|
---|
| 147 | <sect3><title>logoutd</title>
|
---|
| 148 |
|
---|
[b822811] | 149 | <para>logoutd enforces the login time and port restrictions specified in
|
---|
| 150 | /etc/porttime.</para>
|
---|
[6370fa6] | 151 |
|
---|
| 152 | </sect3>
|
---|
| 153 |
|
---|
| 154 | <sect3><title>mkpasswd</title>
|
---|
| 155 |
|
---|
[b822811] | 156 | <para>mkpasswd reads a file in the format given by the flags and converts it
|
---|
| 157 | to the corresponding database file format.</para>
|
---|
[6370fa6] | 158 |
|
---|
| 159 | </sect3>
|
---|
| 160 |
|
---|
| 161 | <sect3><title>newusers</title>
|
---|
| 162 |
|
---|
[b822811] | 163 | <para>newusers reads a file of user name and clear text password pairs and uses
|
---|
| 164 | this information to update a group of existing users or to create new
|
---|
| 165 | users.</para>
|
---|
[6370fa6] | 166 |
|
---|
| 167 | </sect3>
|
---|
| 168 |
|
---|
| 169 | <sect3><title>pwck</title>
|
---|
| 170 |
|
---|
[b822811] | 171 | <para>pwck verifies the integrity of the system authentication
|
---|
| 172 | information.</para>
|
---|
[6370fa6] | 173 |
|
---|
| 174 | </sect3>
|
---|
| 175 |
|
---|
| 176 | <sect3><title>pwconv</title>
|
---|
| 177 |
|
---|
[b822811] | 178 | <para>pwconv converts to shadow passwd files from normal passwd
|
---|
| 179 | files.</para>
|
---|
[6370fa6] | 180 |
|
---|
| 181 | </sect3>
|
---|
| 182 |
|
---|
| 183 | <sect3><title>pwunconv</title>
|
---|
| 184 |
|
---|
[b822811] | 185 | <para>pwunconv converts from shadow passwd files to normal files.</para>
|
---|
[6370fa6] | 186 |
|
---|
| 187 | </sect3>
|
---|
| 188 |
|
---|
| 189 | <sect3><title>useradd</title>
|
---|
| 190 |
|
---|
[b822811] | 191 | <para>useradd creates a new user or update default new user information.</para>
|
---|
[6370fa6] | 192 |
|
---|
| 193 | </sect3>
|
---|
| 194 |
|
---|
| 195 | <sect3><title>userdel</title>
|
---|
| 196 |
|
---|
[b822811] | 197 | <para>userdel modifies the system account files, deleting all entries that
|
---|
| 198 | refer to a specified login name.</para>
|
---|
[6370fa6] | 199 |
|
---|
| 200 | </sect3>
|
---|
| 201 |
|
---|
| 202 | <sect3><title>usermod</title>
|
---|
| 203 |
|
---|
[b822811] | 204 | <para>usermod modifies the system account files to reflect the changes that
|
---|
| 205 | are specified on the command line.</para>
|
---|
[6370fa6] | 206 |
|
---|
| 207 | </sect3>
|
---|
| 208 |
|
---|
| 209 | <sect3><title>vipw and vigr</title>
|
---|
| 210 |
|
---|
[b822811] | 211 | <para>vipw and vigr will edit the files /etc/passwd and /etc/group,
|
---|
[6370fa6] | 212 | respectively. With the -s flag, they will edit the shadow versions of
|
---|
[b822811] | 213 | those files, /etc/shadow and /etc/gshadow, respectively.</para>
|
---|
[6370fa6] | 214 |
|
---|
| 215 | </sect3>
|
---|
| 216 |
|
---|
| 217 | </sect2>
|
---|
| 218 |
|
---|