Autofs and auto mounted homes.

Prerequisites:
It´s important that both hosts can resolv the hostname of the other system.
User/group ID's must be the same on all hosts.

ON FILE SERVER
1. Share directory which will be automaunted as home.
If it's on ZFS:
#zfs set sharenfs=on rpool/export/home
#sharemgm show -vp

If ufs:
#echo "share -F nfs -d \"Home Directories\" /export/home" >> /etc/dfs/dfstab
#shareall
#exportfs

2. Make rpc authorize you:
#svccfg -s svc:/network/rpc/bind
#svc:/network/rpc/bind> setprop config/local_only = false
#svc:/network/rpc/bind> quit

#svcadm refresh svc:/network/rpc/bind
cat >>/etc/hosts.allow
rpcbind: ALL
^D
chmod 644 /etc/hosts.allow




2. Create user and their HOMES :
useradd -u 2000 -m -d /export/home/user -s /bin/bash user

ON CLIENT

1. echo "* gandalf:/export/home/&" >> /etc/auto_home
2.svcadm disable autofs;svcadm enable autofs
3. Create user the same user here if you are'nt using LDAP.
Testing configuration:
login as "user" on client machine
ls /net/server

Comments