Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mount CIFS as writeable for all users?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
deltamalloc
Apprentice
Apprentice


Joined: 18 Jan 2013
Posts: 279

PostPosted: Tue Aug 06, 2013 2:40 am    Post subject: Mount CIFS as writeable for all users? Reply with quote

I have experimented a bit and also searched around, I read among other things the following (see the first answer):

http://serverfault.com/questions/193134/mount-ntfs-read-write-capability-on-ubuntu

However even when I mount with:

Code:

mount.cifs [resource] [mount_path] -o rw,dir_mode=0777,file_mode=0666


A regular user still cannot write to it. Root can though, so the problem is on the client side. What do I need to do in order to make this work?
Back to top
View user's profile Send private message
paulbiz
Guru
Guru


Joined: 01 Feb 2004
Posts: 506
Location: St. Louis, Missouri, USA

PostPosted: Tue Aug 06, 2013 7:17 pm    Post subject: Reply with quote

possibly you need to add the "noperm" option to disable permission checking
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Tue Aug 06, 2013 10:41 pm    Post subject: Reply with quote

here is my mount command:
Code:
mount -t cifs //192.168.1.5/share /mnt/share -o nosuid,nodev,sec=ntlm,workgroup=WORKGROUP,ip=192.168.1.5


and server-side smb.conf:
Code:
[global]
       workgroup = WORKGROUP
       hosts allow = 192.168.
       interfaces = all
       log file = /var/log/samba/log.%m
       max log size = 1000
       syslog = 0
       guest account = root
#       security = share
       unix charset = UTF-8
#       refresh = 1
       
[share]
       path = /mnt/share/
       comment = share
       printable = no
       writable = yes
       guest ok = yes
       create mask = 0777
       directory mask = 0777


passwordless login and read/write permissions for root and regular user
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum