Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-07-2011, 12:40 PM   #1
LQ Newbie
Registered: Mar 2010
Posts: 5

Rep: Reputation: 0
samba share write denied to group

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

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.
Old 11-07-2011, 05:41 PM   #2
LQ Newbie
Registered: Apr 2011
Location: California, US
Distribution: Fedora
Posts: 28

Rep: Reputation: 8
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 02:35 AM
permission denied error while trying to write to a mount of windows share threezerous Linux - Security 1 12-22-2009 04:41 PM
Secondary group member can't write on samba share if they have full permission krishnakant Linux - Server 11 06-23-2009 04:29 PM
Why can I not write to a SAMBA share when read/write is enabled? eric m Linux - General 4 08-21-2006 10:22 PM
samba : access denied for some user in same NT group on a folder mtrento Linux - Networking 0 06-27-2005 11:01 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration