Solaris Tips
Solaris comes with automount enabled by default. Also, it transparently allows mounting a directory in an already mounted filesystem elsewhere without using NFS. The idea is to have the user home directories "physically" in /export/home and to mount them under /home on an as needed basis.
If you create the users through the Solaris Management Console or through admintool, it will automatically set up this scheme, but the command line tools force you to do it manually.
# useradd -d /export/home/sample -c "Sample user" sampleYou can optionally use the -m switch to make useradd copy the files in /etc/skel to the new directory.
sample hostname:/export/home/sample(replacing hostname with the machine hostname, of course)
# usermod -d /home/sample sample
Note that, from now on, opening the /home/sample directory (by logging in as sample, cd'ing, etc) will trigger the mounting of /export/home/sample there. Ten minutes (configurable) after the directory being closed, it will be umounted. df -k whill show something like this:
Filesystem kbytes used avail capacity Mounted on ... /export/home/sample 1621767 1511297 61817 97% /home/sample
People who come from *BSD will find /usr/ucb/vipw handy for these kind of tasks.