LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 12: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, 07:27 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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



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 05:55 PM
samba and group policy egyptian Linux - Networking 3 10-20-2004 05:09 PM
Group Policies on samba mikepengelly Linux - Networking 3 08-25-2004 09:52 PM
How can i use group policies using samba linuxeagle Linux - Networking 0 11-13-2003 11:04 AM
Samba: What group/user is used by Samba to access directories? DJ_Cyberdance Linux - Networking 3 10-04-2003 04:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 PM.

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
Open Source Consulting | Domain Registration