Page 1 of 1

ext3 filesystem question

Posted: Tue Jan 28, 2003 3:04 am
by Heavy
1:
study this:

Code: Select all

-rwxr-xr-x    1 jonas    jonas           0 jan 28 09:50 apa.bin*
-rw-r-----    1 jonas    jonas           0 jan 28 09:50 apa.txt
This means that apa.bin is readable and executable to anyone, right???

I am confused about the conception of world readable.

Is apa.bin world readable?

Does world readable mean that any web-client has r-x right on it, if only they get their hands on some kind of command interpreter on the system that holds apa.bin?

...or does it only mean that any locally accounted user has r-x right on it and web-clients don't see it?

2:
How can I set directory entrance allowance recursively without setting all the files as executable too???

Posted: Tue Jan 28, 2003 8:31 am
by Stoker
This is not really related to Ext3 or the underlaying filesystem as much as the systems VFS, Ext2/3 will keep those pemissions with the files, as some filesystems like FAT won't (Permissions assignes at mount time).

1: Yes, apa.bin is world readable and world executable.
Any local user could read and execute it.
As for web-access, it depends on where the file is, if it not in the web area no-one can access it from the web directly. But consider this, any other script ran by the webserver could access it , so a potential hacker could find a vulnerability in any script, yours or some other users that would let him read your fille.
Basically 'other' means all users, including the user Apache runs as an so forth, therefore the world has indirect acccess..

2: use the find command, something like
find /start/here -type d -exec chmod +x {}\;