[Samba] Creating folders while preserving sharing group

Ooi Kwan Chen ooi_kwanchen at dxn2u.com
Tue Dec 16 01:47:02 GMT 2008

Hi there,

I'm using Samba 3.0.24-6etch10 in Debian Etch 64bit with kernel Linux 

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

       comment = Share
       path = /Share
       read only = No
       create mask = 0640
       directory mask = 0740

       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 =

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 

More information about the samba mailing list