[K12OSN] home directory listing for teachers

Paul Lemke lists at paulandmichelle.net
Tue Aug 15 15:16:11 UTC 2006


Ok, I think I got it. You were right in stating to use the sticky bit... 
chmod g+s

That works great. :) I also setup in smb.conf the "inherit permissions =
yes". I also set my create mask to 660, and directory mask to 770. 

Thanks for the advice. :) 

Paul 

-----Original Message-----
From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On Behalf
Of Paul Lemke
Sent: Tuesday, August 15, 2006 8:52 AM
To: 'Support list for open source software in schools.'
Subject: RE: [K12OSN] home directory listing for teachers

Awesome, this sounds like a great idea! One issue I'm wondering about is the
sticky bit... 

So I've created /home/grade1/,etc. In my bulk add script I'm setting the
home directory to /home/grade1/username/. 

Then I'm going to chown the directories to be owned by the user:teachers
group (I don't care if they have access to different grades).

You mentioned the sticky bit... I thought all the sticky bit did was to only
allow the files from being renamed/deleted by the user, root, or directory
owner? Isn't want I want here something like a samba create mask, but with
the ownership instead? 

Thanks for the help!
Paul 

-----Original Message-----
From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On Behalf
Of Sudev Barar
Sent: Monday, August 14, 2006 11:02 PM
To: Support list for open source software in schools.
Subject: Re: [K12OSN] home directory listing for teachers

On 15/08/06, Paul Lemke <lists at paulandmichelle.net> wrote:
> I was going to change the ownership of the home directories for the
kids...
> "username:teachergroup" and chmod it to 770. Then a softlink share in
samba
> would show all the users home directories. But it doesn't let me break it
up
> by gradegroup.
>

Taking a swipe at this....
Make /home/grade1, /home/grade2 etc. under which make users of each
grade. Now make groups grade1 grade2 ... and make teachers of each
grade part of that group. Then directory permission with
user:gradegroup should do the job. Trick is to set sticky bit so that
the group ownership is automatically attached to all files created in
subdirectories.

HTH
-- 
Regards,
Sudev Barar

_______________________________________________
K12OSN mailing list
K12OSN at redhat.com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>

_______________________________________________
K12OSN mailing list
K12OSN at redhat.com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>




More information about the K12OSN mailing list