System Administration Guide, Volume I

How to Mount a User's Home Directory

  1. Make sure that the user's home directory is shared. See "How to Share a User's Home Directory" for more information.

  2. Log in as superuser on the user's system.

  3. Edit the /etc/vfstab file and create an entry for the user's home directory.


    system-name:/export/home/user-name - /export/home/user-name nfs - yes rw

    system-name

    Is the name of the system where the home directory is located. 

    /export/home/user-name

    Is the name of the user's home directory that will be shared. By convention, /export/home contains user's home directories; however, this could be a different file system.

    -

    Are required placeholders in the entry. 

    /export/home/user-name

    Is the name of the directory where the user's home directory will be mounted. 

    See Chapter 28, Mounting and Unmounting File Systems (Tasks) for more information about adding an entry to the /etc/vfstab file.

  4. Create the mount point for the user's home directory.


    # mkdir -p /export/home/user-name
    
  5. Mount the user's home directory.


    # mountall
    

    All entries in the current vfstab file (whose mount at boot fields are set to yes) are mounted.

  6. Use the mount command to verify that the home directory is mounted.

Example--Mounting a User's Home Directory


# vi /etc/vfstab
 
(The line  venus:/export/home/ripley - /export/home/ripley
nfs - yes rw is added.)
 
# mkdir -p /export/home/ripley
# mountall
# mount
/ on /dev/dsk/c0t3d0s0 read/write/setuid/largefiles on Tue Jun 2 12:37:36 1998
/usr on /dev/dsk/c0t3d0s6 read/write/setuid/largefiles on Tue Jun 2 12:37:36 1998
/proc on /proc read/write/setuid on Tue Jun 2 12:37:36 1998
/dev/fd on fd read/write/setuid on Tue Jun 2 12:37:38 1998
/opt on /dev/dsk/c0t3d0s5 setuid/read/write/largefiles on Tue Jun 2 12:37:38 1998
/tmp on swap read/write on Jun 2 12:37:39 1998
/export/home/ripley on venus:/export/home/ripley /read/write/remote on Jun 2 12:37:40 ...