HP-UX Virtual Partitions

   

HP-UX Virtual Partitions

By Marty Poniatowski

Table of Contents
Chapter 11.  System Administration Manager (SAM)

Chapter 6 covered users and Virtual Partitions. This is the part of Chapter 6 that covers users and SAM. I've included it here to save you the trouble of flipping to Chapter 6. Let's now create a new user on each of the two vPars called cable1 and cable2. On cable1 we'll create the user cable1us and verify that this user does not exist on cable2. On cable2 we'll create the user cable2us and verify that this user does not exist on cable1. See the background portion of this chapter for detailed information on creating users.

Figure 11-9 shows a System Administration Manager (SAM) screen shot of creating a user cable1us in vPar cable1:

Figure 11-9. Creating cable1user in SAM

The user cable1us was created in vPar cable1 and exists only in cable1. We'll verify this shortly. We performed the same procedure creating user cable2us in vPar cable2 using SAM.

There should now be one user in cable1 that is not viewable in cable2, and vice versa. The following shows connecting to cable1 and listing the contents of /etc/passwd.

cvhdcon3:/ # cat /etc/passwd root:hiIXKsAzUIFy6:0:3::/:/sbin/sh daemon:*:1:5::/:/sbin/sh bin:*:2:2::/usr/bin:/sbin/sh sys:*:3:3::/: adm:*:4:4::/var/adm:/sbin/sh uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico lp:*:9:7::/var/spool/lp:/sbin/sh nuucp:*:11:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico hpdb:*:27:1:ALLBASE:/:/sbin/sh nobody:*:-2:-2::/: www:*:30:1::/: webadmin:*:40:1::/usr/obam/server/nologindir:/usr/bin/false smbnull:*:101:101:DO NOT USE OR DELETE - needed by Samba: /home/smbnull:/sbin/sh opc_op:*:777:77:OpC default operator:/home/opc_op:/usr/bin/ksh cable1us::102:20:,,,:/home/cable1us:/usr/bin/sh cvhdcon3:/ #

This listing for cable1 shows that cable1us exists in the /etc/passwd file on cable1, however, there is no cable2us present in this file.

The following shows connecting to cable2 and listing the contents of /etc/passwd.

# cat /etc/passwd root:Jx66ARmhj.aBs:0:3::/:/sbin/sh daemon:*:1:5::/:/sbin/sh bin:*:2:2::/usr/bin:/sbin/sh sys:*:3:3::/: adm:*:4:4::/var/adm:/sbin/sh uucp:*:5:3::/var/spool/uucppublic:/usr/lbin/uucp/uucico lp:*:9:7::/var/spool/lp:/sbin/sh nuucp:*:11:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico hpdb:*:27:1:ALLBASE:/:/sbin/sh nobody:*:-2:-2::/: www:*:30:1::/: webadmin:*:40:1::/usr/obam/server/nologindir:/usr/bin/false sam_exec:xxx:0:1::/home/sam_exec:/usr/bin/sh cable2us::101:20:,,,:/home/cable2us:/usr/bin/sh #

This listing for cable2 shows that cable2us exists in the /etc/passwd file on cable2, however, there is no cable1us present in this file

This listing shows that unique users for the respective vPars exist only on the vPar on which they were created. In addition, each vPar has its own root and other system-level users.


       
    Top
     

    Категории