You are not logged in.

#1 2013-04-08 03:21:10

beaverusiv
Member
From: Taupo, New Zealand
Registered: 2011-07-09
Posts: 41

[SOLVED] Autofs doesn't mount cifs readwrite

Autofs mounts my network shares with no errors, but the 'rw' option doesn't work and I can't write to the shares.

{auto.master}

#/media /etc/autofs/auto.media
/mnt/photos /etc/autofs/auto.photos
/mnt/files /etc/autofs/auto.files
/mnt/nicholas /etc/autofs/auto.nicholas

{auto.nicholas}

Nicholas -fstype=cifs,rw,username=nicholas,password=password ://server/Users/Nicholas

{ls -l /mnt/nicholas/Nicholas}

drwxr-xr-x 0 root root       0 Nov 28 09:45 stret
-rwxr-xr-x 0 root root  432250 Mar 20  2012 town_with_little_market.png
-rwxr-xr-x 0 root root  172957 Feb  8 09:02 welcome_pic.jpg
-rwxr-xr-x 0 root root 3170184 Feb  8 09:12 welcome_pic_whole.png

Any help appreciated

Last edited by beaverusiv (2013-04-08 20:58:42)

Offline

#2 2013-04-08 20:58:28

beaverusiv
Member
From: Taupo, New Zealand
Registered: 2011-07-09
Posts: 41

Re: [SOLVED] Autofs doesn't mount cifs readwrite

I added

gid=100,uid=1000

to the line and also had to restart machine, not just service. I think something was holding onto the connection through autofs starts not allowing it to unmount.

Offline

Board footer

Powered by FluxBB