1 .\" Copyright (c) 1988, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\" may be used to endorse or promote products derived from this software
14 .\" without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 .\" @(#)chpass.1 8.2 (Berkeley) 12/30/93
29 .\" $FreeBSD: src/usr.bin/chpass/chpass.1,v 1.38.2.1 2005/09/24 01:59:39 keramida Exp $
41 .Nd add or change user database information
45 .\".Op Fl p Ar encpass
46 .\".Op Fl e Ar expiretime
55 allows editing of the user database information associated
58 or, by default, the current user.
64 change the user's password on Open Directory
77 utilities behave identically to
79 (There is only one program.)
81 The information is formatted and supplied to an editor for changes.
83 Only the information that the user is allowed to change is displayed.
85 The options are as follows:
86 .Bl -tag -width indent
88 .\"The super-user is allowed to directly supply a user database
89 .\"entry, in the format specified by
92 .\"This argument must be a colon
94 .\"separated list of all the
95 .\"user database fields, although they may be empty.
97 .\"The super-user is allowed to directly supply an encrypted password field,
98 .\"in the format used by
101 .\".It Fl e Ar expiretime
102 .\"Change the account expire time.
103 .\"This option is used to set the expire time
104 .\"from a script as if it were done in the interactive editor.
108 will perform a search for the user record on all available
109 Open Directory nodes.
112 will edit the user record on the directory node at the given
115 The user name to use when authenticating to the directory node containing the
118 Attempt to change the user's shell to
122 Possible display items are as follows:
124 .Bl -tag -width "Other Information:" -compact -offset indent
128 .\"user's encrypted password
136 .\"user's general classification
138 .\"password change time
140 .\"account expiration time
144 user's office location
149 .\".It Other Information:
150 .\"any locally defined parameters for user
152 user's home directory
157 .\"In the actual master.passwd file, these fields are comma-delimited
158 .\"fields embedded in the FullName field.
163 field is the user name used to access the computer account.
167 .\"field contains the encrypted form of the user's password.
171 field is the number associated with the
174 Both of these fields should be unique across the system (and often
175 across a group of systems) as they control file access.
177 While it is possible to have multiple entries with identical login names
178 and/or identical user id's, it is usually a mistake to do so.
180 that manipulate these files will often return only one of the multiple
181 entries, and that one by random selection.
185 field is the group that the user will be placed in at login.
188 supports multiple groups (see
190 this field currently has little special meaning.
191 This field may be filled in with either a number or a group name (see
196 field is the globally unique identifier (UUID) for the user.
200 .\"field references class descriptions in
201 .\".Pa /etc/login.conf
202 .\"and is typically used to initialize the user's system resource limits
207 .\"field is the date by which the password must be changed.
211 .\"field is the date on which the account expires.
217 .\"fields should be entered in the form
218 .\".Dq month day year
221 .\"is the month name (the first three characters are sufficient),
223 .\"is the day of the month, and
227 .\"Five fields are available for storing the user's
228 .\".Ar full name , office location ,
231 .\".Ar home telephone
232 .\"numbers and finally
233 .\".Ar other information
234 .\"which is a single comma delimited string to represent any additional
235 .\"gcos fields (typically used for site specific user information).
238 .\"will display the office location and office phone together under the
243 field contains the full name of the user.
249 path name where the user
250 will be placed at login.
254 field is the command interpreter the user prefers.
257 field is empty, the Bourne shell,
260 When altering a login shell, and not the super-user, the user
261 may not change from a non-standard shell or to a non-standard
263 Non-standard is defined as a shell not found in
268 field is the path to a picture to be displayed for the user.
270 User database entries are under the control of
271 .Xr DirectoryService 8
272 and may be physically located in many different places,
273 including the local Directory Service node,
274 and remote LDAP servers.
277 uses Open Directory to change user database information.
278 It does not interact with the historic flat file
280 .Pa /etc/master.passwd
285 editor will be used unless the environment variable
289 When the editor terminates, the information is re-read and used to
290 update the user database itself.
291 Only the user, or the super-user, may edit the information associated
294 .Bl -tag -width /etc/chpass.XXXXXX -compact
295 .It Pa /etc/chpass.XXXXXX
296 temporary copy of the data to edit
298 the list of approved shells
309 .%T "UNIX Password security"