Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX System Administrator's Guide: Configuration Management: HP-UX 11i Version 3 > Chapter 4 Configuring Users and Groups

Adding a User to Several Systems: A Case Study

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The following example shows how to mount Tom’s home directory and work directory from the file server, flserver, and mount Emacs from the application server, appserver.

Figure 4-3 Adding a User to Several Systems

Adding a User to Several Systems

Before beginning, make sure Tom’s login name has a user ID that is unique across the systems he is going to use. (Your network administrator may have a program to ensure the uniqueness of user ID numbers.)

Next, create an account for Tom on the file server, flserver. See “Configuring Users and Groups with HP SMH”.

Then, perform the following procedure:

  1. On the file server, share Tom’s home directory and the directory where he does his work:

    1. Add an entry in the /etc/dfs/dfstab file to share Tom’s home directory:

      share -F nfs -o access=appservr:dept27:wsj6700 /home/tom

      If the directory is already shared, simply add Tom’s system to the access list.

    2. Add an entry to the /etc/dfs/dfstab file to share the /work directory:

      share -F nfs -o access=dept27:wsj6700 /work

      This contains the files and directories Tom will share with other members of his project team.

    3. Force the server to re-read /etc/dfs/dfstab and activate the new shares for /work and /home:

      # /usr/sbin/shareall
  2. On the application server, share the Emacs directories that Tom needs:

    1. Add entries to the /etc/dfs/dfstab file:

      share -F nfs -o access=dept27:wsj6700 /usr/local/share/emacs share -F nfs -o access=dept27:wsj6700 /opt/hp/gnu/bin700/emacs
    2. Share the directories for Emacs:

      # /usr/sbin/shareall
  3. On Tom’s login server, dept27, do the following:

    1. Create Tom’s account. See “Configuring Users and Groups with HP SMH”. If Tom’s login has already been set up on another system (for example on flserver), you may want to cut the line from flserver’s /etc/passwd file and paste it into the /etc/passwd file on dept27 to ensure that Tom’s account has the same user name and user ID on both systems.

    2. Create empty directories for the file systems to be mounted.

      # mkdir /home/tom # mkdir /work # mkdir /usr/local/share/emacs # mkdir /opt/hp/gnu/bin700/emacs
    3. Add entries to /etc/fstab.

      flserver:/home/tom /home/tom nfs rw,suid 0 0 flserver:/work /work nfs rw,suid 0 0 appserver:/usr/share/emacs/ /usr/share/emacs nfs rw,suid 0 0 appserver:/opt/hp/gnu/bin700/emacs nfs rw,suid 0 0
    4. Mount all the directories:

      # mount -a

See “Sharing an HP-UX Directory” for more information.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.