The super-user is allowed to directly supply a user database entry, in the format specified by passwd(5), as an argument. This argument must be a colon (":") separated list of all the user database fields, although they may be empty.
The super-user is allowed to directly supply an encrypted password field, in the format used by crypt(3), as an argument.
Change the account expire time. This option is used to set the expire time from a script as if it was done in the interactive editor.
Attempt to change the users shell to newshell.
Possible display items are as follows:
users login name
users encrypted password
users login group
users general classification
password change time
account expiration time
users real name
users office location (1)
users office phone (1)
users home phone (1)
any locally defined parameters for user (1)
users home directory
users login shell
In the actual master.passwd file, these fields are comma-delimited fields embedded in the FullName field.
The login field is the user name used to access the computer account.
The password field contains the encrypted form of the users password.
The uid field is the number associated with the login field. Both of these fields should be unique across the system (and often across a group of systems) as they control file access.
While it is possible to have multiple entries with identical login names and/or identical user ids, it is usually a mistake to do so. Routines that manipulate these files will often return only one of the multiple entries, and that one by random selection.
The group field is the group that the user will be placed in at login. Since BSD supports multiple groups (see groups(1)) this field currently has little special meaning. This field may be filled in with either a number or a group name (see group(5)).
The class field references class descriptions in /etc/login.conf and is typically used to initialize the users system resource limits when they login.
The change field is the date by which the password must be changed.
The expire field is the date on which the account expires.
Both the change and expire fields should be entered in the form "month day year" where month is the month name (the first three characters are sufficient), day is the day of the month, and year is the year.
Five fields are available for storing the users full name, office location, work and home telephone numbers and finally other information which is a single comma delimited string to represent any additional gecos fields (typically used for site specific user information). Note that finger(1) will display the office location and office phone together under the heading Office:.
The users home directory is the full Unix path name where the user will be placed at login.
The shell field is the command interpreter the user prefers. If the shell field is empty, the Bourne shell, /bin/sh, is assumed. When altering a login shell, and not the super-user, the user may not change from a non-standard shell or to a non-standard shell. Non-standard is defined as a shell not found in /etc/shells.
Once the information has been verified, chpass uses pwd_mkdb(8) to update the user database.
Force chpass to modify the local copy of a users password information in the event that a user exists in both the local and NIS databases.
Opposite effect of -l . This flag is largely redundant since chpass operates on NIS entries by default if NIS is enabled.
Specify a particular NIS domain. The chpass utility uses the system domain name by default, as set by the domainname(1) utility. The -d option can be used to override a default, or to specify a domain when the system domain name is not set.
Specify the name or address of an NIS server to query. Normally, chpass will communicate with the NIS master host specified in the master.passwd or passwd maps. On hosts that have not been configured as NIS clients, there is no way for the program to determine this information unless the user provides the hostname of a server. Note that the specified hostname need not be that of the NIS master server; the name of any server, master or slave, in a given NIS domain will do.
When using the -d option, the hostname defaults to "localhost". The -h option can be used in conjunction with the -d option, in which case the user-specified hostname will override the default.
Force the use of RPC-based updates when communicating with rpc.yppasswdd(8) ("old-mode"). When invoked by the super-user on the NIS master server, chpass allows unrestricted changes to the NIS passwd maps using dedicated, non-RPC-based mechanism (in this case, a Unix domain socket). The -o flag can be used to force chpass to use the standard update mechanism instead. This option is provided mainly for testing purposes.