Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to write to CIFS mount
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: Mon Jul 22, 2013 8:04 pm    Post subject: Unable to write to CIFS mount Reply with quote

I am mounting a CIFS share with the following command:

Code:

mount.cifs //[ip]/[share] [mount path] -o username=[my username],password=[my password],uid=[some user foobar],gid=[mutual group for foobar and qux],sec=ntlm,rw


However even though I can see with ls -al that the directory is all the way either:

rwx for world
or
rwx for the mutual group

the user "qux" still cannot write to the mounted share. However the user "foobar" can write to it. Both users are in the mutual group.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Thu Jul 25, 2013 3:32 am    Post subject: a couple of comments Reply with quote

First off, put your login credentials into a file which is protected and then refer to that instead of passing them directly. That stuff gets into your history or ends up being readable in the /etc/fstab.

Secondly, look into using pam_mount instead. Once set up, each user will get a mount of the filesystem using their login credentials via pam when they log in. The mount points are typically in subdirectories for each user under their individual homes. When they log out, pam_mount should also automatically do an unmount.
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