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 is displayed if 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:
If you selected the AutoHome Setup field when creating the user account (enabled the automounting of the home directory), log in to a system as the new user to make sure that the user's home directory is available. Otherwise, you have to manually mount the user's home directory and then log in to see if it's available.
If you did not select the AutoHome Setup field when creating the user account (did not enable the automounting of the home directory) and 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 |