I have a few computers with debian lenny on them.
One of them has a nis server:
I can automount my home directory when I log in:
>ssh 126.96.36.199 -l myuser >pwd /home/nis/myuser
Now, I just installed a debian wheezy on one of them and I can no longer automount home directories (but I still can log in using myuser)
>ssh 188.8.131.52 -l myuser Could not chdir to home directory /home/nis/myuser: No such file or directory >pwd /
What I have done until now:
apt-get install nis nfs-common portmap autofs echo "+::::::" >>/etc/passwd echo "+::::::::" >>/etc/shadow echo "+:::" >>/etc/group echo "mynisserver" > /etc/defaultdomain echo "ypserver ##.##.##.75" > /etc/yp.conf nisdomainname mynisserver /etc/init.d/nis restart echo "+auto.master" > /etc/auto.master rm /etc/auto.home /etc/init.d/autofs restart
Any Idea why home directories are still not mounted?
Client side (184.108.40.206)
grep -i automount /var/log/messages grep -i automount /var/log/syslog
returns nothing (and no new line when logging in)
/etc/init.d/autofs status [ ok ] automount is running.
cat /etc/nsswitch.conf passwd: compat nis group: compat nis shadow: compat nis hosts: files dns nis networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis
Not sure it has anything to do with it, but just in case:
showmount -a clnt_create: RPC: Port mapper failure - Unable to receive: errno 111 (Connection refused)
Server side (220.127.116.11):
cat /etc/exports /home/nis 18.104.22.168/24(sync,rw,no_root_squash,no_subtree_check)
I tried to manually mount nfs on 22.214.171.124 with root. It worked. Now I need to figure out why autofs don't do it automatically:
mount -t nfs -o rw 126.96.36.199:/home/nis /home/nis