System Administration Guide: Basic Administration

How to Mount a User's Home Directory

For information on automounting a home directory, see “Task Overview for Autofs Administration” in System Administration Guide: Resource Management and Network Services.

  1. Make sure that the user's home directory is shared.

    For more information, see How to Share a User's Home Directory.

  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

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

    /export/home/user-name

    The name of the user's home directory that will be shared. By convention, /export/homeuser-name contains user's home directories. However, this could be a different file system.

    -

    Required placeholders in the entry. 

    /export/home/user-name

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

    For more information about adding an entry to the /etc/vfstab file, see “Mounting and Unmounting File Systems (Tasks)” in System Administration Guide: Devices and File Systems.

  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. Verify that the home directory is mounted.


    # mount | grep user-name
    

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/c0t0d0s0 read/write/setuid/intr/largefiles/xattr/onerror= ...
/usr on /dev/dsk/c0t0d0s6 read/write/setuid/intr/largefiles/xattr/onerror= ...
/proc on /proc read/write/setuid/dev=3dc0000 on Fri Apr  2 13:26:30 2004
/etc/mnttab on mnttab read/write/setuid/dev=3e80000 on Fri Apr  2 13:26:30 2004
/dev/fd on fd read/write/setuid/dev=3ec0000 on Fri Apr  2 13:26:33 2004
/var/run on swap read/write/setuid/xattr/dev=1 on Fri Apr  2 13:26:34 2004
/tmp on swap read/write/setuid/xattr/dev=2 on Fri Apr  2 13:26:38 2004
/export/home on /dev/dsk/c0t0d0s7 read/write/setuid/intr/largefiles/xattr...
/export/home/ripley on venus:/export/home/ripley remote/read/write/setuid/xattr/dev=...