I have used the force group entry for shares in the past.

[Share]
        comment = Share
        path = /Share
        read only = No
        create mask = 0640
        directory mask = 0740
        force group = data

Not sure if this is frowned upon or not but seems to work ok.

James




On Tue, 2008-12-16 at 11:24 -0700, Andrew Masterson wrote:
> chmod g+s ~/Share/
> 
> smb.conf:
>       inherit acls = yes
>       inherit permissions = yes
> 
> or    create mask 750
> 
> or something similar.
> 
> > -----Original Message-----
> > From: [email protected]
> >
> [mailto:[email protected]
> ]
> > On Behalf Of Ooi Kwan Chen
> > Sent: Monday, December 15, 2008 6:47 PM
> > To: [email protected]
> > Subject: [Samba] Creating folders while preserving sharing group
> > 
> > Hi there,
> > 
> > I'm using Samba 3.0.24-6etch10 in Debian Etch 64bit with kernel Linux
> > 2.6.18-6-amd64.
> > 
> > Here is my case scenario.
> > 
> > I have created a folder to be shared with other group users. The
> > ownership for the folders are showed as below:
> > 
> > Directory path:~/Share/
> > 
> > drwxr-x--- 25 admin data  4096 2008-05-05 13:42 file1107
> > drwxr-x--- 25 admin data  4096 2008-11-13 14:57 file1207
> > 
> > When the admin group users created a folder under the Share directory,
> > it is showed as below:
> > 
> > drwxr-----  2 admin admin 4096 2008-12-15 11:45 New Folder
> > 
> > I wanted the folder to have admin:data kind of ownership whenever the
> > admin users created a file or a folder. Is it possible to do that?
> > 
> > Here's my smb.conf file
> > 
> > [Share]
> >        comment = Share
> >        path = /Share
> >        read only = No
> >        create mask = 0640
> >        directory mask = 0740
> > 
> > [global]
> >        workgroup = IT
> >        netbios name = ITSHARE
> >        server string = %h server
> >        security = USER
> >        encrypt passwords = No
> >        passwd program = /usr/bin/passwd %u
> >        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
> > *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully*
> .
> >        syslog = 0
> >        log file = /var/log/samba/log.%m
> >        max log size = 1000
> >        os level = 64
> >        local master = No
> >        domain master = No
> >        dns proxy = No
> >        wins support = Yes
> >        panic action = /usr/share/samba/panic-action %d
> >        invalid users = root
> >        read list = data
> >        write list = admin
> >        hosts allow = 192.168.11.0/24 192.168.10.0/24
> > 
> > Appreciate your all kind suggestions. Thank you
> > 
> > --
> > Best regards,
> > 
> > Ooi Kwan Chen (John), System Support, Server Management Section,
> > Group IT Department, DXN Holdings Berhad
> > Office Phone : +604 771 6688 Ext 122 Fax : +604 772 4785
> > Website : www.dxn2u.com
> > 
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/listinfo/samba

CONFIDENTIALITY
This e-mail message and any attachments thereto, is intended only for use by 
the addressee(s) named herein and may contain legally privileged and/or 
confidential information. If you are not the intended recipient of this e-mail 
message, you are hereby notified that any dissemination, distribution or 
copying of this e-mail message, and any attachments thereto, is strictly 
prohibited.  If you have received this e-mail message in error, please 
immediately notify the sender and permanently delete the original and any 
copies of this email and any prints thereof.
ABSENT AN EXPRESS STATEMENT TO THE CONTRARY HEREINABOVE, THIS E-MAIL IS NOT 
INTENDED AS A SUBSTITUTE FOR A WRITING.  Notwithstanding the Uniform Electronic 
Transactions Act or the applicability of any other law of similar substance and 
effect, absent an express statement to the contrary hereinabove, this e-mail 
message its contents, and any attachments hereto are not intended to represent 
an offer or acceptance to enter into a contract and are not otherwise intended 
to bind the sender, Sanmina-SCI Corporation (or any of its subsidiaries), or 
any other person or entity.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to