Subject: Re: [netatalk-admins] NFS/SMB/Appleshare on the same file system
From: Michael Stone (mstone@itri.loyola.edu)
Date: Sun Jul 13 1997 - 21:28:56 EDT
Quoting Michael Rothwell (rothwell@holly-springs.nc.us):
[I said that even if the .AppleDouble directories are hidden,
they can still cause problems]
> # rm -r *
Argh. Ok, scenario 1: User 1 creates directory foo (perm 775)
, but doesn't use netatalk. User 2 goes into user1's directory
with netatalk, umask 022. User 1 decides to get rid of foo.
Uh, oh, he can't delete user 2's files from .AppleDouble, so
the system won't let him remove the directory.
scenario 2: user1 is a unix newbie, but knows how to create a
directory. So, he creates a directory 'bar' from a shell and
later enters it using netatalk. He gets tired of that directory
and decides to get rid of it. He does 'cd bar; rm *; cd ..;
rmdir bar'. user1 then calls for help because the machine
won't let him get rid of his directory. It keeps telling
him the directory is empty, even though 'ls' doesn't show
any files.
scenario 3: user1 has gotten into the habit of always using
'rm -r', because that's the way to get rid of .AppleDouble.
So now when he tries to get rid of directory foobar, he does
'cd ..; rm -r *'. Oops. user1 then calls for help because all
his files are gone.
I admit these are a bit contrived (though I have seen similar
situations) but the point is, why create potential problems
if they can at all be avoided? No, you can't protect users
(or sysadmins) from everything, but you do the best you can.
-- Michael Stone, Sysadmin, ITRI mstone@itri.loyola.edu PGP: finger, or email with "Subject: get pgp key"
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:39 EST