| United States-English |
|
|
|
![]() |
HP Servers and Workstations: Managing Systems and Workgroups > Chapter 8 Administering a System: Managing
System SecurityManaging Trusted Passwords and System Access |
|
The password is the most important individual user identification symbol. With it, the system authenticates a user to allow access to the system. Since they are vulnerable to compromise when used, stored, or known, passwords must be kept secret at all times. The first part of this section is similar to the section “Managing Standard Passwords and System Access”, but with a Trusted System point of view. The standard section also contains the following information on protecting system access. Security Administrator’s ResponsibilitiesThe security administrator and every user on the system must share responsibility for password security. The security administrator performs the following security tasks:
User’s ResponsibilityEvery user must observe the following rules:
Observe the following guidelines when choosing a password:
Management must forbid sharing of passwords. It is a security violation for users to share passwords. A Trusted System maintains multiple password files: the /etc/passwd file and the files in the protected password database /tcb/files/auth/ (see “The /tcb/files/auth/ Database”). Each user has an entry in two files, and login looks at both entries to authenticate login requests. If NIS+ is configured, this process is more complex; see “Network Information Service Plus (NIS+)”. All passwords are encrypted immediately after entry, and stored in /tcb/files/auth/user-char/user-name, the user’s protected password database file. Only the encrypted password is used in comparisons. Do not permit any empty/null password fields in either password file. On Trusted Systems, the password field in /etc/passwd is ignored. A user with an empty password will be forced to set a password upon login on a Trusted System. However, even this leaves a potential for security breach, because any user can set the password for that account before a password is set for the first time. Do not edit the password files directly. Use SAM, useradd, userdel, or usermod to modify password file entries. HP-UX generates these mapping files to provide faster access to the password files:
It is possible for these mapping files to get out of sync with the password database files, resulting in users being unable to login. In this case, remove the mapping files. The system will automatically regenerate new mapping files. The /etc/passwd file is used to identify a user at login time for a Trusted System. The file contains an entry for every account on the HP-UX system. Each entry consists of seven fields, separated by colons. A typical entry for /etc/passwd in a Trusted System looks like this:
The fields contain the following information (listed in order), separated by colons:
The user can change the comment field (fifth field) with chfn and the login program path name (seventh field) with chsh. The system administrator sets the remaining fields. The uid should be unique. See chfn(1), chsh(1), passwd(1), and passwd(4). The user can change the password in the protected password database with passwd. When a system is converted to a Trusted System, the encrypted password, normally held in the second field of /etc/passwd, is moved to the protected password database, and an asterisk holds its place in the /etc/passwd file. Protected password database files are stored in the /tcb/files/auth/ hierarchy. User authentication profiles are stored in these directories based on the first letter of the user account name. For example, the authentication profile for user david is stored in the file /tcb/files/auth/d/david. On Trusted Systems, key security elements are held in the protected password database, accessible only to superusers. Password data entries should be set via SAM. Password data which are not set for a user will default to the system defaults stored in the file /tcb/files/auth/system/default. The protected password database contains many authentication entries for the user. See prpwd(4) for more information on these entries, which include:
On Trusted Systems, the system administrator can control how passwords are generated. The following password generation options are available:
Password generation options may be set for a system. Also, the system administrator can set password generation options on a per-user basis, overriding the system default. At least one password generation option must be set for each user. If more than one option is available to a user, a password generation menu is displayed when the user changes his password. The system administrator may enable or disable password aging for each user. When password aging is enabled, the system maintains the following for the password:
The expiration time and lifetime values are reset when a password is changed. A lifetime of zero specifies no password aging; in this case, the other password aging times have no effect. On Trusted Systems, the system administrator can enable the password history feature on a system-wide basis to discourage users from reusing from one to ten previous passwords. You enable password history by defining the following parameter as a line in the file /etc/default/security:
where n is an integer from 1 to 10, specifying the number of previous passwords to check. If n is less than 1, or the entry is missing, it defaults to 1; if n is greater than 10, it defaults to 10. When a user changes his/her password, the new password is checked against the previous n passwords, starting with the current password. If any match, the new password is rejected. An n of 2 prevents users from alternating between two passwords. See passwd(1) and security(4) for further details. On Trusted Systems, the system administrator may specify times-of-day and days-of-week that are allowed for login for each user. When a user attempts to log in outside the allowed access time, the event is logged (if auditing is enabled for login failures and successes) and the login is terminated. A superuser can log in outside the allowed access time, but the event is logged. The permitted range of access times is stored in the protected password database for users and may be set with SAM. Users that are logged in when a range ends are not logged out. For each MUX port and dedicated DTC port on a Trusted System, the system administrator can specify a list of users allowed for access. When the list is null for a device, all users are allowed access. The device access information is stored in the device assignment database, /tcb/files/devassign, which contains an entry for each terminal device on the Trusted System. A field in the entry lists the users allowed on the device. Terminal login information on a Trusted System is stored in the terminal control database, /tcb/files/ttys, which provides the following data for each terminal:
Only superusers may access these Trusted System databases and may set the entries via SAM. See devassign(4) and ttys(4) for more information. The library routines in the following manpages can be used to access information in the password files and other Trusted System databases.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||