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 1:
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)
EDIT2:
I tried to manually mount nfs on 193.167.1.80 with root. It worked. Now I need to figure out why autofs don't do it automatically:
mount -t nfs -o rw 193.167.1.75:/home/nis /home/nis
    
/var/log/messages. Where can I look otherwise?/var/log/syslog?/var/log/syslogeither. No new line when logging in and nothing fromgrep -i automount /var/log/syslog