LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-05-2009, 01:58 PM   #1
digity
Member
 
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
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
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:
Code:
chmod g+s /usr/loca/share/data
 
  


Reply


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


All times are GMT -5. The time now is 09:07 AM.

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