LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   samba share write denied to group (https://www.linuxquestions.org/questions/linux-server-73/samba-share-write-denied-to-group-912345/)

chapan 11-07-2011 11:40 AM

samba share write denied to group
 
I have samba set up to share home directories as follows:

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes


I need to have multiple users share the same home directory. The directory permissions are:

drwxrwsr-x 2 chapan mayor 80 Nov 7 11:18 test

If I map the share from windows as chapan, I can write to the directory. If I map the share from another user who has the same directory as its home directory,
and is a member of group 'mayor', I cannot write to the directory, I get an 'access is denied message'. However, if I ftp or telnet to the server, I can write to the directory if I am a member of 'mayor'. I need to be able to have multiple users have read/write access to the share.

kmassare 11-07-2011 04:41 PM

Unless the users' default group is mayor you will need to switch the user to group mayor by adding the line:

force group = mayor

to the [homes] section. This should allow those users that are actually in group mayor to access home directories of the group. Other users should not be impacted since they cannot switch to a group to which they don't belong.


All times are GMT -5. The time now is 08:28 AM.