Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-05-2009, 01:58 PM   #1
Registered: Apr 2005
Posts: 105

Rep: Reputation: 15
Use a different group in Samba

When creating a new file or folder on a samba share its owner and group defaults to the currently logged in user and his/her primary group (digity/digity). How do configure samba/smb.conf to use a different group than the user's default one (e.g., digity/creative)?
Old 02-05-2009, 08:27 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Samba can use the "force group = groupname" directive for a share to force files/directories to be created as a particular group. You can also change a directory's permissions within the file system to be set gid to cause all new files/directories to inherit the top level directory's group. For example:
chmod g+s /usr/loca/share/data


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
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 06:55 PM
samba and group policy egyptian Linux - Networking 3 10-20-2004 06:09 PM
Group Policies on samba mikepengelly Linux - Networking 3 08-25-2004 10:52 PM
How can i use group policies using samba linuxeagle Linux - Networking 0 11-13-2003 12:04 PM
Samba: What group/user is used by Samba to access directories? DJ_Cyberdance Linux - Networking 3 10-04-2003 05:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 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