Howard Cole
2011-Mar-24 23:38 UTC
[Samba] Write permissions denied only when connecting via mount -t cifs
Hello all,
I am having an issue connecting to a samba 3 share hosted on one ubuntu
server to a ubuntu client using the mount command.
I can happily mount the share, however It only mounts read only.
If I connect to the share using the smbclient utility - I can write.
Here is the 3.4 share config, straight from the ubuntu manual:
[global]
workgroup=WORKGROUP
security=user
[w]
path = /data/w
browsable = yes
guest ok = yes
read only = no
create mask = 0755
writable = yes
ls -l /data gives
drwxr-xr-x nobody nogroup w
I can connect from the client using:
smbclient //192.168.168.5/w -o guest (this one works fine - i can
create files/directories)
mount -t cifs //192.168.168.5/w /media/w -o guest,rw (read only?)
Can anyone tell me how to mount in Read/Write mode?
Thanks.
TAKAHASHI Motonobu
2011-Mar-25 11:52 UTC
[Samba] Write permissions denied only when connecting via mount -t cifs
From: Howard Cole <howardnews at selestial.com> Date: Thu, 24 Mar 2011 23:38:47 +0000> I can happily mount the share, however It only mounts read only. > > If I connect to the share using the smbclient utility - I can write.(snip)> mount -t cifs //192.168.168.5/w /media/w -o guest,rw (read only?) > > Can anyone tell me how to mount in Read/Write mode?To set "noperm" option with "mount -t cifs" will solve your problem? "noperm" means to ignore permissions on client side generated by "mount.cifs". --- TAKAHASHI Motonobu <monyo at samba.gr.jp>
Howard Cole
2011-Mar-25 18:27 UTC
[Samba] Write permissions denied only when connecting via mount -t cifs
On 25/03/2011 11:52 AM, TAKAHASHI Motonobu wrote:> mount -t cifs //192.168.168.5/w /media/w -o guest,rw (read only?) >> Can anyone tell me how to mount in Read/Write mode? > To set "noperm" option with "mount -t cifs" will solve your problem? > "noperm" means to ignore permissions on client side generated by > "mount.cifs". > > --- > TAKAHASHI Motonobu<monyo at samba.gr.jp> >That worked! Thank you very much.