On the machine that you want to automount directories on, execute:
dscl -change Local/Default/Users/johnd NFSHomeDirectory /Users/johnd /home/johnd
dscl will change the home directory of johnd from the normal /Users/johnd to /home/johnd.
This step readies for the use of the automounter.
Edit /etc/auto_home to look like:
## Automounter map for /home
#+auto_home
# Use directory service
johnd server1.local:/Users/johnd
Useful DSCL commands for configuring Users:
Create a new entry in the local (/) domain under the category /users. |
|
Create and set the shell property to bash.
|
|
Create and set the user’s full name.
|
|
Create and set the user’s ID.
|
|
Create and set the user’s group ID property.
|
|
Create and set the user home directory.
|
|
Set the password.
|
|
perform administrative functions
|
|
|
|
|