[Samba] Re: file permissions

Brent Torrenga brent.torrenga at torrenga.com
Wed Feb 26 15:19:24 GMT 2003


Brian,

    When you chmod g+s the parent directory does it also apply to
subdirectories of that, or just the non-directory files immediately inside
that directory? What I mean is, if I have a whole directory tree, and want
everyone of a group to be able to access files in this tree, do I need to
chmod g+s (add the group sticky bit? is that what this says?) ALL the
directories here, or just the "root" of the tree? I realize the -R option
applies g+s to all files/dirs, but is it necessary?

Also, for clarification, step 2 below should be chgrp not chown, I believe.

"Brian Johnson" <bjohnson at jecinc.on.ca> wrote in message
news:NGBBLODIKLKOJOAGKPFOAEFDCAAA.bjohnson at jecinc.on.ca...
> What I've done to try to address this (and it seems to be working) is to:
> 1. add all of the users to a common group
> 2. chown the directory above the file to the group
> 3. chmod -R g+s the directory above the file
> 4. add    inherit permissions = yes to smb.conf
>
> > -----Original Message-----
> > From: samba-bounces+bjohnson=jecinc.on.ca at lists.samba.org
> > [mailto:samba-bounces+bjohnson=jecinc.on.ca at lists.samba.org]On Behalf Of
> > Richard Clemens
> > Sent: Tuesday, February 25, 2003 16:10
> > To: samba at lists.samba.org
> > Subject: [Samba] file permissions
> >
> >
> > Hello,
> >
> > I am having problems with multiple users being able to access the same
> > file on a samba volume.
> >
> > I tried assigning the three users and the document all to a single group
> > with no luck.
> >
> > So far we have had to chmod 777 the doc just to be able to read it.
> >  when a change is made the doc is reverted to the last person who
> > changed it making it impossible for the next user  to edit it.  in
> > addition, the group is changed back to the original settings as well.
> >
> > TIA
> > Rich
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> >
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
>





More information about the samba mailing list