<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=515335017-29042004><FONT face=Arial color=#0000ff size=2>Okay,
if I set a cron to run:</FONT></SPAN></DIV>
<DIV><SPAN class=515335017-29042004><FONT face=Arial color=#0000ff size=2>chown
-R teacher1 /home/Drop/Teacher1</FONT></SPAN></DIV>
<DIV><SPAN class=515335017-29042004><FONT face=Arial color=#0000ff size=2>This
does what I want. Only problem now is creating a cron for every teachers
drop folder. How would I write a cron that will run on /home/Drop and look
at the owner of folder TeacherX and automatically recursively set any files
under that folder with the owner of the enclosing folder? Does that make
sense? That way if Teacher1 is owned by user Teacher1 the cron will figure
that out and substitute this in, or if Teacher2 is owned by Teacher2, you get
the point. Can one enter a variable for owner? Or do I just have to
buck-up and write one for every teacher drop created?</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
k12osn-bounces@redhat.com [mailto:k12osn-bounces@redhat.com] <B>On Behalf Of
</B>Huck<BR><B>Sent:</B> Thursday, April 29, 2004 12:11 PM<BR><B>To:</B>
'Support list for opensource software in schools.'<BR><B>Subject:</B> RE:
[K12OSN] Hopefully the last permission question<BR><BR></FONT></DIV>
<DIV><SPAN class=670071017-29042004><FONT face=Arial color=#0000ff
size=2>think you'd be looking at a cron solution there?</FONT></SPAN></DIV>
<DIV><SPAN class=670071017-29042004><FONT face=Arial color=#0000ff
size=2>something run'n every hour to automagically chown and
chgrp?</FONT></SPAN></DIV>
<DIV><SPAN class=670071017-29042004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=670071017-29042004><FONT face=Arial color=#0000ff
size=2>--Huck</FONT></SPAN></DIV>
<DIV><SPAN class=670071017-29042004></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
k12osn-bounces@redhat.com [mailto:k12osn-bounces@redhat.com] <B>On Behalf Of
</B>Jim Kronebusch<BR><B>Sent:</B> Thursday, April 29, 2004 9:26
AM<BR><B>To:</B> k12osn@redhat.com<BR><B>Subject:</B> [K12OSN] Hopefully the
last permission question<BR><BR></FONT></DIV>
<DIV><SPAN class=718032216-29042004><FONT face=Arial size=2>Last problem I
seem to be having is that when a student drops homework into
/home/drop/teacher1/class1 folder which is owned by teacher1 and group
teacher1 with Set Uid and Gid checked, the file the student drops is
still owned by the student. I would like the user and group set to
teacher1. The reason being that if the student still owns the file the
teacher cannot delete it, and it messes with the students user quota.
Once in the drop folder it is the teachers responsibility to remove the file
and no longer the students, so I believe these files should affect teacher
quotas not the student. So how do I set any file dropped in this
folder to reset the owner and group to that of the enclosing folder? I
would like to not have a script option, but something via chmod or whatever
is immediate.</FONT></SPAN></DIV>
<DIV><SPAN class=718032216-29042004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=718032216-29042004><FONT face=Arial
size=2>Thanks</FONT></SPAN></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>