LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2011, 01:00 PM   #1
pentalive
Member
 
Registered: Jun 2005
Location: Sacramento, CA
Distribution: Many, Old and New
Posts: 124

Rep: Reputation: 15
Ownership on new files in group samba share set badly


I have a samba share for the group "Founders", when a person in the founders group creates a file it is given the ownership of USERNAME:USERGROUP my own would be created as pentaliveentalive.. I need them to be created as pentalive:founders (i am a member of group founders)

How can this be accomplished?

The segment from my smb.conf

[founders]
comment = Founders Only
path = /samba/founders
browsable = no
available = yes
writeable = yes
guest ok = no
valid users = +founders

founders is just one of many groups I and the other founders are in.

Last edited by pentalive; 08-20-2011 at 01:01 PM.
 
Old 08-26-2011, 03:03 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

To cause all files henceforth created in /samba/founders to be owned by the "founders" group, do the following.
Code:
chgrp founders /samba/founders && chmod g+s /samba/founders
 
1 members found this post helpful.
  


Reply

Tags
ownership, permissions, samba



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
change samba share permissions using CLI that were initially set with Nautilus lupusyonderboy1 Linux - Server 2 05-27-2009 04:27 PM
creating files from windows on a samba share gives read-only permissions. lievendp Linux - General 5 12-17-2008 10:55 AM
Using a Windows XP client to set permissions on a Samba share Wendellz Linux - Software 2 02-09-2007 08:01 AM
how to set Samba directory / share permissions rwtreke Linux - General 2 02-16-2006 03:24 PM
files&folders permissions under SAMBA share shani Linux - Software 2 11-20-2003 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:11 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
Open Source Consulting | Domain Registration