Subject: Re: [netatalk-admins] NFS/SMB/Appleshare on the same file system
From: Paul M. Lambert (plambert@nas.nasa.gov)
Date: Sun Jul 13 1997 - 21:10:07 EDT
Michael Rothwell said:
>
> > The unix host won't delete a non-empty directory, even if it looks
> > empty because the files in it are hidden.
>
> # rm -r *
>
> --- Kills 'em dead.
>
Yep, if you have access to a command line.
Typically, the problem is this: the user does not. They only have access
through samba/netatalk/whatever.
In this case, their local machine does not see any files in the folder/dir
and so tells the host to delete it.
The host attempts to do so, and it cannot, because there are files in it.
This will, in almost every case, result in a very confused user. ;-)
It would be possible, as someone mentioned, to patch netatalk and samba
to allow recursive deletion of directories which only contain "invisible"
files.
This would take a small amount of work, however.
The alternative would be to always trust the client, and delete all dirs
recursively when the client asks for the directory to be deleted. However,
I don't know if the "can't do that, there are files" error typically comes
from the application level, or filesystem level...
--Paul
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:39 EST