12.3 A Sample SAM Session

   

Let's use SAM to create a new user on the system. To perform a certain job, you need to go to the proper SAM area. To manage users and groups, you need to go to the Accounts for Users and Groups area by double-clicking the left mouse button on this icon.

Creating a New User

Let's perform the job step-by-step. First of all, start SAM using the sam command. For this example, I assume that you are using SAM in GUI. You will see a window like the one shown in Figure 12-3. It may happen that all of the icons are not visible in the window. You can scroll up and down to navigate the icons by using the scroll bars.

Search for the Accounts for Users and Groups icon in the window. This is the SAM area used for user and group management. Double-click the left mouse button on this icon; you will see that the window is changed, and the two icons shown in Figure 12-4 appear in the window. The Groups icon is used for tasks related to the management of groups on your system, while the Users icon is for user management. The third icon, ..(go up) , is used to go back to the previous screen.

Figure 12-4. SAM Accounts for Users and Groups functional area.

graphics/12fig04.gif

Double-click the left mouse button on the Users icon. You will see that a new window appears as shown in Fig. 12-5. This window lists all existing user accounts on your system. The window takes its information from the /etc/passwd and /etc/groups files. Here you can see login name , login IDs, group membership, and other information about each user. You can also modify an existing user by selecting that user with a single left-button mouse click and starting the proper action from the Actions menu.

Figure 12-5. SAM Users area.

graphics/12fig05.gif

Now click on the Actions menu without selecting any user and choose Add from this menu. When you click the left mouse button on this menu, the pull-down menu appears as shown in Figure 12-6.

Figure 12-6. SAM activating the Action menu.

graphics/12fig06.gif

As you can see from the figure, you can take actions to modify, deactivate, or remove an existing user. You can also change a user's group membership and modify his or her password. To add a new user, select the Add option and a new window appears. This is a form that you need to complete with information related to the new user. This window is shown in Figure 12-7.

Figure 12-7. SAM form for adding a user.

graphics/12fig07.gif

The first field is the login name. SAM will automatically select an available user ID and display it in the UID field of the form. However, you can change the user ID manually. Then you fill in the other information on the form. If the Create Home Directory box is checked, SAM will create a home directory for the user. The default shell is the POSIX shell, and you can change it to a shell desired for the user. The boxes that are marked Optional may be left blank. After filling out the form, you press the Apply button or the OK button. You will see a new window as shown, in Figure 12-8, where you have to enter a password twice for the new user. After you have entered the password, another window will appear showing that the user creation process is complete. This window is shown in Figure 12-9.

Figure 12-8. Entering a password for the newly created user.

graphics/12fig08.gif

Figure 12-9. Process of user creation is complete.

graphics/12fig09.gif

When you press the OK button in this window, the new user is listed in the user list, as shown in Figure 12-5. After that, you can quit using SAM using the Exit option from the File menu.


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net