I'm really stucked with such a simple thing like configuring autofs5 on Ubuntu Precise using 3.2.0-26-generic-pae kernel.
Remotely I have a samba server which I want to access from a client.
On the client side, I installed autofs:
In /etc/auto.master I added the following line:
# apt-get install autofs
Content of auto.shared is:
/mnt/shared /etc/auto.shared --timeout=60
I'm pretty sure the /etc/credentials file has the right credentials.
shared -fstype=cifs,uid=localuser,gid=localuser,iocharset=utf8,credentials=/etc/credentials,nosetuids,noperm ://192.168.0.99/shared
After this, I restarted autofs and directory /mnt/shared exists but it's empty...
On the server side this directory has a lot of files. Curiously using smbclient I can connect to the remote server and I see the files (using the same credentials file). Even mounting manually or via fstab this samba-point it works properly. It's just autofs/automount that fails... Absolutely nothing in the logs. I tried to teardown apparmor and didn't work, and also to find something about this but I didn't see any relevant, nor in this forum, what makes me think this can be some kind of bug.
drwxr-xr-x 2 root root 0 nov 6 19:22 ./
drwxr-xr-x 3 root root 4096 nov 6 19:22 ../
Also tried to specify manually username and password parameters in auto.shared, and still doesn't work.
Any ideas about this?
Thanks a lot!