Your method of account management determines which steps are necessary to change passwords.
If you use file collections rather than NIS, you must change the password in the master password file. Although this file might not be maintained on the control workstation, any changes to passwords must be made known to the control workstation.
If you use file collections on your system, users must be able to log in to the node that is the password file server to change their passwords. If the control workstation is the password server you must allow users to log in to change their passwords. However, you might want to have only administrative tasks performed on the control workstation and do not want general users to be able to do anything other than change their passwords.
A restrict login script is provided so you can allow full login on the control workstation to the users you designate and restrict full login to all others. The script can be incorporated into the profile that runs during every login to the control workstation. Users not designated can log in only to change their passwords and then are logged out.
|The restrict login script does not keep anyone from using the |su command to switch the login session to that of another user |ID. If you are logged in on the control workstation and you switch to a |user ID that is restricted, you are prompted to change the password for that |ID. Your activity is then subject to the security credentials of that |user ID.
This script is located in the /usr/lpp/ssp/config/admin/cw_restrict_login file. To use this script, do the following:
The cw_allowed file defines to the cw_restrict_login script which user names are allowed to fully log in to the control workstation. The cw_allowed file is shipped containing three administrators' user names to show how the file is formatted. Remove these sample names from the file.
Start each user name in the left most column and place one user name per line. Place no comments in the file. You do not need to list the root user in the file; the script is written to allow the root user to fully log in to the control workstation.
# Allow general users to login to control workstation to only change # their password then log them out. /usr/lpp/ssp/config/admin/cw_restrict_login
If you are using the AIX Common Desktop Environment (CDE) on the control workstation, make a link from the restricted login script for CDE to the appropriate CDE directory:
ln -s /usr/lpp/ssp/config/admin/cde_cw_restrict_login \ /etc/dt/config/Xsession.d/cde_cw_restrict_login
To remove this restrictive login, you can comment out (add a # at the beginning of the cw_restrict_login script execution line) or delete the lines you added in the /etc/profile file on the control workstation. If you are using CDE, also remove the cde_cw_restrict_login link in the /etc/dt/config/Xsession.d directory.
If neither NIS nor file collection is used, you must distribute these updated password files across the SP system after you change the password.
If you have configured the SP USER ADMINISTRATION INTERFACE to true and you are not using NIS, the following base AIX commands are linked to SP commands on the nodes:
The original AIX files have been saved in their original location with extension .aix added. For example, the original AIX passwd command is in /bin/passwd.aix.
The linked sp_... commands inform users what machine to log in to when, or if, they need to change password, gecos, or shell information.
Important Notes |
---|
|