automount a windows share

Posted by user1632812 on Server Fault See other posts from Server Fault or by user1632812
Published on 2012-10-29T10:09:27Z Indexed on 2012/10/29 11:03 UTC
Read the original article Hit count: 235

Filed under:
|
|

I have this line and it works

mount -t cifs -o myuser //192.168.0.12/Public/Docs /mnt/cifs_shares/Docs

But then I try with autofs and it doesn't

In /etc/auto.master:

/mnt/cifs_shares/Docs       /etc/auto.cifs_shares

and in /etc/auto.cifs_shares

Docs   -fstype=cifs,rw,noperm,credentials=/etc/credentials.txt   ://192.168.0.12/Public/Docs

it seems that the thing gets mounted actually, but it turns to be empty.

When mounted with mount it's not empty at all

What am I missing ?

I'm on Centos 6.3 64 bits

© Server Fault or respective owner

Related posts about centos6

Related posts about cifs