Subject: RE: [netatalk-admins] Newbie with a few questions..
From: Danny Carroll (dm.carroll@qut.edu.au)
Date: Wed Feb 25 1998 - 17:05:54 EST
On Wednesday, 25 February 1998 20:08, Vivek [SMTP:vivek@imaginet.co.uk] wrote:
> On Wed, 25 Feb 1998, Danny Carroll wrote:
>
> > I tried creating one for them (empty) and chown.chmodding it but I found
> > that
> > even though root owned the file.. You could rename it from the Mac... -
> > BAD
> >
> > I wonder if you can do this to other files say /etc/passwd??
>
> The ability to move/delete a file depends on the directory permissions:
> You aren't altering the file itself, but the directory it is in. After
> all, if it's your directory, you get a say as to what lives there and what
> doesn't. It might take a bit of getting used to initially, but it all
> starts to make sense if you think about it for a while. Think of it like
> this - you aren't moving/deleting the file: you're removing/changing an
> entry that points to that file from the directory.
But it shouldn't be like that... if I have a home diectory like this..
user : testuser
1 drwxr-xr-x 3 testuser users 1024 Feb 26 08:05 ./
1 drwxr-xr-x 11 root root 1024 Feb 25 14:41 ../
1 -rw-r--r-- 1 testuser users 251 Feb 22 01:14 .bash_history
1 -rw-r--r-- 1 testuser users 24 Jul 14 1994 .bash_logout
1 -rw-r--r-- 1 testuser users 220 Aug 24 1995 .bash_profile
1 -rw-r--r-- 1 testuser users 124 Aug 24 1995 .bashrc
0 -rw------- 1 root root 0 Feb 26 08:05 AppleVolumes
Then nothing should let testuser alter that file EVEN if it is in the home
dir...
testuser logs in via apple... Rename the file (Have to click a few times)
and hey presto, it looks like this..
1 drwxr-xr-x 3 testuser users 1024 Feb 26 08:05 ./
1 drwxr-xr-x 11 root root 1024 Feb 25 14:41 ../
1 -rw-r--r-- 1 testuser users 251 Feb 22 01:14 .bash_history
1 -rw-r--r-- 1 testuser users 24 Jul 14 1994 .bash_logout
1 -rw-r--r-- 1 testuser users 220 Aug 24 1995 .bash_profile
1 -rw-r--r-- 1 testuser users 124 Aug 24 1995 .bashrc
0 -rw------- 1 root root 0 Feb 26 08:05 anynameyouwant
Testuser then can create a new AppleVolumes file.
how do you disable the use of AppleVolumes in home dir's??
-Danny
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Danny Carroll - CSO Academy of the Arts, QUT
Phone (07) 3864-5903
Fax (07) 3864-5569
Mobile 0412-217-441
E-mail dm.carroll@qut.edu.au
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:31:14 EST