after unsuccessful attempts to solve the problem, I'm asking for your help!
I'm trying to mount CIFS shares from Samba server automatically using autofs.
It works with manual command:
sudo mount -t cifs -o user=uusrs,password=passwd,uid=uusrs,gid=uusrs,fil e_mode=0600,dir_mode=0755 //darkstar/music /home/uusrs/@/music
However, I can't have it mount automatically with autofs.
I used it for several years already, and it worked on Ubuntu 10.04. I do the same on Ubuntu 12.04, and it doesn't work.
What I did:
I added the following to /etc/auto.master:
/home/uusrs/@ /etc/auto.uusrs --timeout=60 --ghost
I created /etc/auto.uusrs. It contains:
music -fstype=cifs,credentials=/etc/auto.uusrs.cred,uid=uusrs,gid=uusrs,file_mode=0600 ,dir_mode=0755 ://darkstar/music
Also, I added a string:
automount: nis files to /etc/nsswitch.conf
However, when I run
sudo service autofs start I see autofs start/running, process 12381
but my /home/uusrs/@/music directory is empty. I checked /var/log/syslog and seen
ypbind: broadcast: RPC: Timed out. I guess ypbind problem is not necessary the reason because manual mount command works. And exactly the same autofs settings worked on Ubuntu 10.04!
Could you please help solve the problem?