bascule wrote on Tue, Sep 24, 2002 at 01:21:07AM +0100 : > i think i'm coming unstuck about the difference between 'r' - read permission > and 'x' -enter perm for a directory, what exactly is the difference?
IIRC, when you set ONLY the x bit for a directory, a user can access
files in that directory if they know the exact name, but they cannot do
a directory listing. Try it:
cd ~
mkdir test1
touch file{1,2,3}
chmod 111 test1
ls -l
ls -l test1
You'll get permission denied. BTW, don't do this as root, or it won't
matter WHAT permissions you set it, root can still look into it.
Then the next interesting note. You can't delete it. Try it:
rm -rf test1
It won't let you. You have to change the mode of the directory, then it
will let you:
chmod 700 test1
rm -rf test1
Blue skies... Todd
--
MandrakeSoft USA http://www.mandrakesoft.com
Mandrake: An amalgam of good ideas from RedHat, Debian, and MandrakeSoft.
All in all, IMHO, an unbeatable combination. --Levi Ramsey on Cooker ML
Cooker Version mandrake-release-9.0-0.3mdk Kernel 2.4.19-12mdk
msg58000/pgp00000.pgp
Description: PGP signature
