Re: Huge unexpected file/dir deletions without user intervention


Subject: Re: Huge unexpected file/dir deletions without user intervention
From: Hans-Peter Jansen (hpj.lisa@t-online.de)
Date: Sun Jun 18 2000 - 10:21:21 EDT


Robert Bell wrote:
>
> Hans-Peter Jansen wrote:
> >It happened, that huge amounts of data got
> > deleted several times without reason!
> ...
> > The concerned
> > users swear, they haven't triggered it, and didn't notice any
> > suspicious behavior.
> ...
> > Does anybody suffered from those problems here?
>
> Yes
>
> >
> > Does somebody has some explanation for this effect?
> >
>
> I have seem this behavior when I was trying to get the
> Network Trash Folder to work.
> I never figured out why,
> but someone unrelated to the files would have a folder in their trash can.
> If they did not pay attention when they emptied their trash can,
> it could delete a lot of files when they personally only put a couple
> of files (from a different folder) in the trash.
> One user noticed that it was taking a long time to empty the network
> trash can, and stopped it. When we looked into their trash,
> there was someone else's home folder in it.

Apart from the problem, this sounds like a /home permission problem.
No user except root should be allowed to access other's home dirs.
Several distro's don't seem to be sensible about this concern.
chmod 700 /home/* does the job.

> That is when I changed the permissions on the "Network Trash Folder"
> so that no files would go in it, and the user would get the message
> when they deleted a file that it would get deleted immediately.

Okay, this sounds reasonable, because the user, who seems to be
responsible for the deletions was the first one touching the freshly
created shares, and therefore able to store files in the trash...

My own deletion experience was in sync with experiments to get the
trashcan working for more than one user, so it fits nicely into the
scenario.

Let's conclude: don't let users move data the "Network Trash Folder",
otherwise, you are calling for trouble.

To Adrian: would you please temporarily disable the "Network Trash
Folder" feature in the next release, until we know exactly, what
happens and how we can fix this. It may be related to certain MacOS/
Finder versions. It happened with 9.04 in this case.
It's definitely a show stopper, if not worse...

Thanks for all responses. I'm able to give an explanation/fix to my
customer, as well as I hope, they will get back some confidence in
netatalk.

Cheers
FrisPete

-- 
"You can tune a filesystem but you can't tuna fish" (HP/UX' tunefs manpage)



This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:31:16 EST