IBM Books

Administration Guide


Understanding the SP user management facility

The SP system provides the ability for you to manage your user accounts by adding new users, deleting existing users, or changing the user account information from a single point of control. This optional SP user management facility ensures that users have the same account, home directory, and environment across all the nodes in the SP system.

The objective of any user management system is to ensure that the user account files, namely /etc/passwd, /etc/group, /etc/security/passwd, and /etc/security/group and optional password index files are consistent across all of your nodes. You can accomplish this by using Network Information Service (NIS), by distributing these files using file collections, or by some other means. The password index files /etc/passwd.nm.idx, /etc/passwd.id.idx, and /etc/security/passwd.idx are used for login performance.

If you use NIS, the SP system references the NIS maps that are located on the NIS master machine. The NIS maps provide each user with a single image of their user account information in the NIS domain. This information includes the user's login name, password, group information, default shell, and the name of the host where the home directory resides. If you use SP automounter support, the system also maintains automounter maps of mount points for the home directories. As the system administrator, you need to create and maintain the NIS environment on the NIS master machine in the /var/yp directory. The SP User Management commands do not interface with the NIS environment. For discussion of using NIS, refer to the appropriate NIS documentation or the book IBM International Technical Support Centers RS/6000 SP System Management: Easy, Lean and Mean.

If you are not using NIS, the SP User Management commands use the user.admin file collection to propagate the user administration files to the nodes of the system. You might want to use this file collection to keep other user management related files consistent across the nodes. For more information see The user.admin file collection.

In NIS, users can change their own passwords, as needed, while logged in any SP node. In non-NIS environments users must log into the host where the password file resides. The full path name for the password file is set during installation by using the passwd_file parameter of the spsitenv command or SMIT panels. Administrators can change passwords for any user account from the NIS master.

After you complete the installation and customization procedures, you establish an initial set of users from the existing user management files in your network. The SP system provides the ability for you to manage your user accounts by adding new users, deleting existing users, or changing the user account information.

Note:
When you set the SP user management Site Environment attribute to true, the configuration process renames the /usr/bin/passwd executable to /usr/bin/passwd.orig. In its place, a new /usr/bin/passwd executable is created. When you run it, it requests that you change your password on the control workstation.

Even though you use SP file collections, you can still use NIS in parallel for user administration. When you do use NIS, exclude the user administration files from the file collections and restore the /usr/bin/passwd executable (the original is stored as /usr/bin/passwd.orig).

SP user management options

Using the SP user management commands, you can add and delete users, change account information, and set defaults for your users' home directories. |To use the SP user management options, you can specify them during |the installation process or change them later by using SMIT panels or the |spsitenv command. The PSSP: Installation and Migration Guide contains detailed instructions for entering site environment information.

From SMIT

ENTER
smit enter_data

SELECT
Site Environment Information

The following options, displayed in the Site Environment Information SMIT menu, pertain to user management:

User Administration Interface
Whether or not you want to use SP User Management to add, delete, and change user account information.

Password File
The path of your password file. The user commands add, modify, and delete entries in this file. If you modify the default path of /etc/passwd and you are using NIS, ensure that you also modify your NIS make file to build the password map from the new password file.

Password File Server Hostname
The hostname of the machine where your master password file resides. The initial value is the control workstation. The master password file location cannot be one of the nodes in the SP system.

Home Directory Server Hostname
The name or IP address of the machine where the user home directories reside.

You can specify a default host for users' home directories. If you use the SP automounter support the user management commands will use this host when building automounter maps to mount and link the home directories. If you do not specify a default, the initial value of the control workstation is assumed.

You can override the value in Hostname Home Directory Server when adding or modifying a user account with the spmkuser and spchuser commands.

If the users' home directories are served by a machine within the SP system and you follow the authentication setup described in Chapter 2, Security features of the SP system, then you need not do anything more to have the SP user management commands run correctly.

However, if the home directory server is outside the SP system, there are two cases:

  1. The machine that serves the home directory is in the same authentication realm as the SP system. In this case, the administrator's principal name must be added to the .klogin file of that machine.
  2. The machine that serves the home directory is outside the realm and not authenticated. In this case, add a line to the .rhosts of the machine with the following data:
    • The hostname where the commands run
    • The user name root

    In this case, when the SP user management commands are run, informational messages are displayed to show that authenticated commands could not be run. However, the user management task will be performed.

Home Directory Path
This is where you specify the default path of users' home directories. The default is /home/control_workstation_name/.

Enter another value to set another path as the default for your site. You can override the default path with the home attribute, spmkuser, and spchuser commands.

Any host that is serving user directories must have its /etc/exports file modified to grant access to all hosts that need to mount these directories. Export the file systems using exportfs -a after modifying the /etc/exports file.

SP user management commands

The SP user management commands reside in the /usr/lpp/ssp/bin directory on the control workstation. You can add, change, delete, or list user accounts using either the SP commands or the SMIT interface.

For example, you can add new users to the SP system in any of the following ways:

The examples in this section show the first two methods. You can find the complete syntax for the commands in the PSSP: Command and Technical Reference.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]