[Samba] File permissions
sgmayo at mail.bloomfield.k12.mo.us
Tue Aug 20 04:21:00 GMT 2002
Thanks. Your suggestions helped. I thought the force user made it
force to save as the user. I took that out and then gave the /bhs
permissions of 3777 so that files save would be set to the goup that owns
the directory. Then I create mask = 070 so that the teacher group(owner of
the dir) could read the files, but the students after saving them could not
touch them. This seems to be working correctly. Thanks for the help.
PH: (573) 568-4564
FX: (573) 568-5681
Pager: (800) 264-2535 X2549
----- Original Message -----
From: "Joel Hammer" <Joel at HammersHome.com>
To: "Scott Mayo" <sgmayo at mail.bloomfield.k12.mo.us>; <samba at lists.samba.org>
Sent: Monday, August 19, 2002 9:40 PM
Subject: Re: [Samba] File permissions
> Why not make
> create mask = 000 ?
> Once they save it, they can't touch it. And, nobody can overwrite it,
> either, it seems.
> On Mon, Aug 19, 2002 at 07:25:38PM -0500, Scott Mayo wrote:
> > This is a temporary fix until I get my students added, but here is what
> > want.
> > I have a directory on my linux machine.
> > /programs/bhs
> > the permissions for bhs are 1777 jones:teach = (owner:group)
> > In my smb.conf I have the following or there abouts(I have change it
> > times)
> > [bhs]
> > comment = bhs
> > path = /programs/bhs
> > writable = yes
> > create mask = 770
> > force user = kreese
> > force group = teacher
> > My idea was that when the students login highschool:bhs = (user:group)
> > save to the directory that it would change the owner:group to
> > which it does. I also thought that since I had the sticky bit set on
> > folder that since they no longer were the owner or in the group (after
> > save) that they would not be able to delete it which they still can.
> > am I doing wrong?
> > Thanks for any help.
> > Scott Mayo
> > Tech Coordinator
> > Bloomfield Schools
> > PH: (573) 568-4564
> > FX: (573) 568-5681
> > Pager: (800) 264-2535 X2549
> > --
> > 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