Folder Permissions

David Brodbeck DavidB at mail.interclean.com
Wed Dec 19 06:30:10 GMT 2001


How do you prevent the cron job solution from copying only part of the file,
if it happens to be run while the file is being written?

-----Original Message-----
From: Richard Smart [mailto:rsmart at netaccess.co.nz]
Sent: Wednesday, December 19, 2001 5:30 AM
To: Wayne Dozier
Cc: samba at lists.samba.org
Subject: Re: Folder Permissions


At 15:04 18/12/01 -0500, you wrote:
>I have a problem.  I am not sure if this is possible but I
>will ask anyway.  When I log into a samba server from a
>windows98 client everything works fine.  I map a drive to my
>home directory and that to works fine.  My question is when
>in that folder, is there a way to edit the permissions on
>the folders within on the linux level.
>
>My delima:
>

This appears to be a common "problem" in school networks :-)

I solved the problem indirectly using a C program and a cron job -
described below, and Andrew Bartlett solved the problem using a Web based
solution. I have attached a copy of a previous email with the details of
both here. If you want the C source let me know - I will send it on, if
Andrews Solution would fit better you would need to contact him

Richard S

/*** Previous Email *****/

> >Does anyone know how to set a WRITE only share for one group of users but
a
> >second group has both read and write permission on the same share? What
to
> >enable students to submit assignments to a common share but teachers have
> >the ability to read from the same share.
> >
> >
> >Thanks for your help
> >
> >Andrew Minett
> >--
> >
> 
> I tried to do this, but found that Win9x made it impossible to do Write
> permission automatically implies read permission. What I did do was
> 
> Create a share for pupils to put homework into
> Run a small app that runs as a cron job every minute that takes all files
> from the homework share and all sub-directories and moves them
> to another share (and matching sub-directories) accessible by teachers
> only. The app pre-pends a date/time stamp to the filename as well ie
> Homework.doc becomes 1203_0401_Homework.doc in the teachers share
> 
> This approach solved a couple of related problems:-
> 
> Stops pupils overwriting files by another pupil they could not see on a
> write only share
> If the work is submitted more than once, the date/time stamp shows the
> submissions as separate files
> By moving them (and changing permissions) the files became completely
> unavailable to the pupils 1 min or so after submission preventing then
from
> changing them.
> 
> If this is of any use to you I would be happy to send the C source code
> directly - or make it available to anyone else that had a use for it as
> well :-)

Andrew Bartletts Solution....

My solution to this problem was web-based:  Setup a file-upload form
that also checked username and password, dumping the file in a
samba-accessable location (symlinked into the teachers home dir).





>I have a Professor who wants her class to be able to write
>but not read to one folder.(so they can not see each others
>papers)  She want another folder full access, and the other
>folder to be read only.  
>
>Now creating folders with these permissions is not hard by
>any means for me.  Her question was is there a way to change
>the permissions to these files at any given time.  
>
>She will be logging in from a window98 client.  I can not
>see any way to change permissions.  Any ideas??
>
>Wayned Dozier
>Greensboro College
>Network Administrator
>
>-- 
>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