Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi,
I have a Mandrake 8.0 box running Samba 2.2.0 with several samba shares that can only be accessed by specific groups. For example - the accounting share can only be accessed by members of the accounting group.
My problem is that whenever a user copies a file into a share, (from a Win98 client), the file is given the ownership:group of the individual user - thus locking out all of the other members of the group from accessing the file. I want all of the files in the accounting share, (for example), to maintain the permissions of the accounting group. How is this done?
snip from smb.conf
[accounting]
path = /data/accounting
valid users = @accountants
comment = Accounting Dir
public = no
read only = no
writable = yes
inherit permissions = yes
create mode = 770
force create mode = 770
directory mode = 770
force directory mode = 770
group = @accountants
force group = @accountants

Try setting the SGID bit for your share. For example, if you want the normal (user,group,all) permissions to be 770, do:
chmod 2770 /data/accounting
The "2" sets the SGID bit, which should force all files that get placed/created in /data/accounting to be owned by the accounting group, not the group to which the creator of the file belongs.

Just as a follow-up:
The above assumes, of course, that the UNIX group ownership of the /data/accounting directory has been set to the accounting group using the "chown" command.

![]() |
Defrag.and Cleanup of Tem...
|
X Server recompile !
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |