| United States-English |
|
|
|
![]() |
HP 9000 Computer Systems : Administering Your HP-UX Trusted System > Chapter 2 Installation and Configuration of an HP-UX Trusted SystemSetting Up Password Controls |
|
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. You and every user on the system must share the responsibility for password security. This section provides an overview of the tasks required for setting up password controls. For detailed information about users and passwords on UNIX systems, refer to Practical UNIX Security. To maintain a secure system, you must perform the following security tasks:
To ensure the maximum security of your users' directories and files, you must perform the following before adding users to a trusted system. Be sure to add the following line to the system files listed below:
System files:
If you already added users to the system such as with an update from a previous version, you will have to change the umask in all existing accounts. Be sure also to change the umask for root.
You can set up password and account security policies using SAM:
Refer to the following sections for how to set up the specific aspects of password and account security. You can set system policies for user accounts. The policies you set apply to all users unless you set user-specific policies. Refer also to "Selecting and Generating Passwords" later in this chapter. To set up password format policies using SAM:
HP-UX lets you select password aging options. The amount of time a user has a particular password on his or her account directly related to the amount of time a penetrator has to guess it. The system maintains a time between password changes, an expiration time, and a lifetime for passwords on the system when password aging is enabled. Refer to "Password Aging" later in this chapter for more information. If there is a system compromise, you can also choose to expire all user passwords immediately and force users to select new passwords. To set up password aging policies using SAM:
You can set some general policies to help ensure system security on user accounts. To set up general user account policies using SAM:
When setting up a general user account, you must ensure that the user is not authorized to boot in single-user mode. This must be reserved for the system administrator. See "Setting Up General User Account Policies" for instructions. See the System Administration Task manual and the following man pages for more information: default(4), getprpwent(3), and prpwd(4).
This screen allows you to specify login restrictions. By setting these restrictions, you can enforce greater system security. To set terminal securities policies using SAM:
A trusted system has two password database files:
Each of these files enforces the security policy previously defined in this chapter. Every user has entries in both files and login looks at both entries to authenticate login requests. All passwords are encrypted immediately after entry and stored in /tcb/files/auth/user_initial/ username on a trusted system. The password field in /etc/passwd is ignored. A user with an empty password is forced to set a password upon login on a trusted system. However, this leaves a potential security breach, because any user who knew about the account could set the password for that account before a password is set for the first time.
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 unable to log in. In this case, remove the mapping files. The system automatically regenerates new mapping files. The /etc/passwd file is used to authenticate users at login time on standard HP-UX systems. This file contains descriptions of every account on the system. Refer to HP-UX System Administration Tasks and the passwd(1) and passwd(4) man pages in the HP-UX Reference. 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 file, and an asterisk holds its place in the / etc/passwd file. Protected password database files are stored in /tcb/files/auth hierarchy. User authentication profiles are stored in these directories based on the first letter of the user account name. For example, authentication profile for user dgarcia is stored in the file /tcb/files/auth/d/dgarcia. The protected password file is an important part of a C2-level trusted system. Key security elements are stored in the protected password database and are accessible only to superusers. You need to set password entries using character mode SAM. Password data not set for a user uses the system defaults stored in the file /tcb/files/auth/system/default. When you add new user accounts to the system using character mode SAM, user protected password database entries are created as a side effect. SAM ensures that each account has a unique login name. SAM issues a warning message if you try to create an account with an existing UID. SAM ensures that a unique audit ID is assigned for each UID. Refer to HP-UX System Administration Tasks for additional information about adding users to your system and controlling system access. If adding more than one account for a user, you must be sure that each account has a unique UID, for security reasons. Each login must have a unique UID on a trusted system. Each entry in the protected password database corresponds to a single user. Each entry contains the following fields:
Refer to prpwd(4) for more information on these entries. On trusted systems, the following methods control how passwords are generated:
You can set these options for your HP-UX system or for specific users. You can 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, you can specify times of day and days of week that are allowed for login for each user. This is another mechanism to ensure that the C2-level security is maintained. When a user attempts to log in outside of the allowable access time, the event is logged (if auditing is enabled for login failures and successes) and the login time is terminated. Administrators with superuser privilege can log in outside the allowable access time, but the event is logged. The access time is stored in the protected password database. You can change the access times using SAM. You (the superuser) can also control access to the system using serial devices. For each mux port and dedicated DTC port on a trusted system, you can specify a list of users allowed access. If the list is empty (null) for a device, all users are allowed access. The device access information is stored in the device assignment database, / tcb/files/auth/devassign, which contains an entry for each device on the trusted system. Each entry in the device assignment database contains the following fields:
You can modify the device assignment database using SAM. Functions provided allow you to administer the relationship between physical devices and pathnames, to assign device types, and to designate which users can use the devices. See devassign(4) for more information. You can also control access to terminals to enforce even stricter controls. 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:
One special login terminal is called the system console. When the kernel is configured during system installation, you need to specify the hardware device to which the system console is attached. You can access the terminal control database using SAM and set or modify all entries. See ttys(4) for more information. Table 2-2 “Library Routines for Manipulating Trusted System Databases” lists the library routines you can use to access information in the password files and other trusted system databases. Refer to the HP- UX Reference for details. Table 2-2 Library Routines for Manipulating Trusted System Databases
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||