On Thu, Oct 10, 2002 at 02:20:23PM -0400, Thom Paine
wrote:> I have 5 users that need to belong to the blswin32 group. I want any
> files in that folder rw to everyone. I would guess that I would want it
> to force a user and group?
I've done something like this before for group access. To make sure I
understand what you want: folder X shared by samba, with all files and
directories (existing and future) r/w by all members of group blswin32.
In smb.conf you'll want to use force group, but you don't really need
force user. You will want to force the permissions of new files to be
group-writable, though. I think that's the "create mask" and
"directory
mask" parameters, but (as always) check the documentation yourself. You
may also want to look in to "inherit permissions".
On the UNIX side, set the group of the entire directory tree to blswin32
(chgrp -R). Set all the file permissions to 664 (or 660) so they're r/w
by group and owner, and all the directory permissions to 2775 (or 2770).
I recommend GNU find+xargs for setting the permissions, something like
"find /directory -type f -print0 | xargs -0 chmod 664". That will
allow
for spaces in names.
--
Michael Heironimus