passwd_override(5sec)The registry database override file Description The dcelocal/etc/passwd_override administrative file lets you override the password, GECOS, home directory, login shell, group membership, and principal UNIX ID information stored in the network registry database. The passwd_override file is stored on each host machine. Any changes you make to it are in effect for the local machine only, and have no effect on the centralized registry. You may find passwd_override especially useful for excluding people from using certain machines, establishing local root passwords, or tailoring local user environments.
The passwd_override File Format principal_name:passwd:principal_uid:group_id:GECOS:home_d ir:login_shell In an override entry, principal_name, principal_uid, and group_id fields are keyfields. You must enter one of them to identify the principal or group to which the overrides apply. The keyfield is used to perform a lookup in the override file. The lookup is performed in order as the entries are specified in an override entry: first by principal name, then by principal UNIX ID, and finally by group UNIX ID. If you specify more than one keyfield in an override entry, the first keyfield specified is the lookup key; subsequent keyfields are used as overrides.
Field Descriptions
principal_name
passwd When you override a principals password, only the principals local credentials are obtained at login, not the principals network credentials. Without network credentials, the principal cannot access the network registry and obtain the information normally provided at network login. Therefore, you must supply all this information in the password_override file entry. For overrides to passwords, you must enter all fields in the override entry, including all keyfields. You can also specify OMIT in the passwd field to disallow login on the local machine. The use of OMIT in conjunction with an option to the passwd_export command also prevents the inclusion of this principal in the password file created by passwd_export. (See the topic entitled Using OMIT in this command reference, for details.)
principal_uid Enter principal_uid and principal_name to override the UNIX ID of the named principal.
group_id Enter group_uid and no other keyfield (principal_name or principal_uid) to apply the override to all members of the group identified by group_uid. In this instance the group_uid field functions as a keyfield, identifying the accounts to which to apply the overrides (that is, accounts whose principal is a member of the specified group). Enter group_uid and principal_name to change the group of the principal identified by principal_name to the group identified by group_uid. The change applies only to the account for the principals primary name, not to any accounts for the principals aliases. Enter group_uid and principal_uid to apply the group override to all the principals accounts, including any for the principals aliases. In these instances the group_uid field functions as a field supplying override information, not as a keyfield.
GECOS
home_dir
login_shell
Leaving Fields Blank
Using OMIT You should also be aware that, if you have omitted principals from the /etc/passwd file, information about those principals will not be available to any programs that use the password file. For example, the ls -l and the finger commands both access the password file to obtain further information about a principal. If the principal is omitted, no password entry will exist and no information will be available. For this reason, you should use OMIT to omit principals from the /etc/passwd file only if your user community is very large and either of the following conditions occur: The passwd file is taking up too much space. User-ID-to-name mapping is too slow (during ls -l, for example).
Notes Examples 1. To prevent the principal with a UNIX ID of 52 from logging in to the local machine, the entry in the passwd_override file is as follows: :exclude:52:::: 2. To prevent members of the group identified by a UNIX ID of 25 from logging in to a node and to omit them from inclusion in the password file, put OMIT in the passwd field: :OMIT::25:::
Then run the following passwd_export command with the -x option to omit these principals from /etc/passwd file: 3. To change the password, home directory, and initial shell for mozarts account, the entry is as follows: mozart:sq1Rc1Urrb1L6:678:893:Wolfgang A. Mozart:/aria/wolfgang:/bin/csh 4. To override the home directory for user mozarts account, include the following entry in the passwd_override file: mozart:::::/aria/wolfgang:
Related Information File: group_override(5sec)
|