[Samba] File permissions

Joel Hammer Joel at HammersHome.com
Tue Aug 20 07:00:01 GMT 2002

I would be surprised if linux would be so impolite as to attempt to move a
file that was being writen to. Would cp or rm be so badly behaved?
But, I get surprised everyday.
I guess the only way to be sure is to try it out and see. Have the cron job
run every second and start saving some big files. Or, you might use smbstatus to
make sure the file wasn't in use before acting on it.
On Tue, Aug 20, 2002 at 11:27:42AM -0400, David Brodbeck wrote:
> One problem I see with this approach is how do you know the file is done
> being written before you move it?  You might get unlucky and move half a
> file.
> > -----Original Message-----
> > From: Joel Hammer [mailto:Joel at HammersHome.com]
> > Sent: Tuesday, August 20, 2002 10:35 AM
> > To: Scott Mayo; samba at lists.samba.org
> > Subject: Re: [Samba] File permissions
> > 
> > 
> > Another approach. 
> > 
> > If what you are doing is getting the kids to send in school 
> > assignments via
> > the share, why not write a cron job which monitors that 
> > share, say ever 5
> > secs, and when a file appears on the share, it is removed and stored
> > somewhere else.

More information about the samba mailing list