Subject: Re: [netatalk-admins] NFS/SMB/Appleshare on the same file system
From: Scott Schatzer (schatzer@ciesin.org)
Date: Sun Jul 13 1997 - 23:45:26 EDT
On Sun, 13 Jul 1997, Michael Stone wrote:
> Date: Sun, 13 Jul 1997 21:28:56 -0400
> From: Michael Stone <mstone@itri.loyola.edu>
> To: Michael Rothwell <rothwell@holly-springs.nc.us>
> Cc: netatalk-admins@umich.edu
> Subject: Re: [netatalk-admins] NFS/SMB/Appleshare on the same file system
>
> 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"
>
>
Sounds like creative use of the "s" bit could overcome some of these
problems. As well, Sysadmins may want to try aliasing rm to "rm -i" for
newbie users so they are prompted before trashing dirs......
--Scott S.
---------------------------------------------------------------------
Scott Schatzer | CIESIN
Systems Administrator | The Consortium for International
scott.schatzer@ciesin.org | Earth Science Information Network
Phone: 517-797-2679 | 2250 Pierce Rd.
Fax: 517-797-2622 | University Center, MI 48710
http://www.ciesin.org |
=====================================================================
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:39 EST