I have a few computers with debian lenny on them.
One of them has a nis server: 193.167.1.75
I can automount my home directory when I log in:
>ssh 193.167.1.80 -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 193.167.1.80 -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?
EDIT:
Client side (193.167.1.80)
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.
nsswitch:
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 (193.167.1.75):
cat /etc/exports
/home/nis 193.167.1.0/24(sync,rw,no_root_squash,no_subtree_check)