Trusted Solaris Installation and Configuration

How to Share a File System

Administrators access the /etc/dfs/dfstab file through the Share Filesystems action in the System_Admin folder.


Caution - Caution -

Do not use proprietary names for shared file systems. The names of shared file systems are visible to every user.


To Share Home Directories and Other Filesystems

Perform this procedure on the home directory or on a file server. If the directory is being shared before the secadmin and admin roles are credentialed, the install team performs the procedure in the role root.

  1. As role admin, at label admin_low, run the Share Filesystems action from the System_Admin folder in the Application Manager.

    The Share Filesystems action opens the /etc/dfs/dfstab file.

    1. Enter the file system to be shared, and any relevant options.

      For example, to share home directories:


      share   -F nfs -d "home dirs" /export/home

      For example, to share a network install directory:


      share   -F nfs -o ro,anon=0 -d "netinstall dir" /export/ts7_install/

    2. Save the file and close the editor.

  2. As the role admin, at label admin_low, run the share(1M) command to share the file systems.

    For example, to share home directories:



    $ share /export/home
    

    For example, to share a network install directory:



    $ share /export/install/tsolfiles
    $ share /jumpstart
    

    See the NIS+ and FNS Administration Guide for ways to restrict home directory access to particular groups.

  3. Check that the directories are shared.

To Check That a Directory Is Shared

  1. As role admin, at label admin_low, run the command showmount -e:


    $ showmount -e
    
    1. If it returns an export list, the directory is shared, as in:

      export list for install_server:
      /export/install/ts7_sparc
      /jumpstart
      
    2. If it returns the following error, start the nfs.server daemon.

      showmount: server: RPC: Program not registered
      

To Start the nfs.server Daemon

  1. In the role admin, at label admin_low, start the nfs server program.


    $ /etc/init.d/nfs.server stop
    $ /etc/init.d/nfs.server start
    
  2. Check that the directory is shared.

    For example, when home directories are shared:


    $ showmount -e
    export list for home_directory_server:
    /export/home   (everyone)