Become superuser on the system that contains the home directory.
Verify that the mountd daemon is running.
# ps -ef | grep mountd root 176 1 0 May 02 ? 0:19 /usr/lib/nfs/mountd |
The /usr/lib/nfs/mountd line shows whether the mountd daemon is running.
If the mountd daemon is not running, start it.
# /etc/init.d/nfs.server start |
List the file systems that are shared on the system.
# share |
Determine your next step based on whether the file system containing the user's home directory is already shared.
If the File System Containing the User's Home Directory Is ... |
Then ... |
---|---|
Already shared |
Go to the verification step below. |
Not shared |
Go to Step 6 |
Edit the /etc/dfs/dfstab file and add the following line.
share -F nfs /file-system |
file-system |
Is the file system containing the user's home directory that you need to share. By convention, the file system is /export/home. |
Share the file systems listed in the /etc/dfs/dfstab file.
# shareall -F nfs |
This command executes all the share commands in the /etc/dfs/dfstab file, so you do not have to wait to reboot the system.
Verify that a user's home directory is shared, as follows:
# share |
If the user's home directory is not located on the user's system, you have to mount the user's home directory from the system where it is located. See "How to Mount a User's Home Directory" for detailed instructions.
# ps -ef | grep mountd # /etc/init.d/nfs.server start # share # vi /etc/dfs/dfstab (The line share -F nfs /export/home is added.) # shareall -F nfs # share - /usr/dist ro "" - /export/home/user-name rw "" |