eXtremist
11-16-2001, 09:57 AM
I just noticed something and I'm a little confused about it.
My home directory has permissions 700.
I created a file in ~/ with the permissions 644.
This file should be readable to anybody. But, if I try to view it as a different user, I can't. If I change the permissions on ~/ to 711, then I can read it.
So is it safe to say that in order for anyone to access a file in one of my directories the directory MUST be executable?
How could I give someone access to a file without him being able to see the contents of the folder its in? AND, is there a way to share a folder without having to make all of its parent directories executable?
For example
/home (drwxr-xr-x)
/greg (drwx------)
/tmp (drwx------)
/file (-rw-rw-rw-)
The file "file" is not readable by anyone because /home/greg/tmp is not executable.
If I make /home/greg/tmp executable, anyone can list the files there.
I want to make "file" viewable without making "tmp" viewable.
My home directory has permissions 700.
I created a file in ~/ with the permissions 644.
This file should be readable to anybody. But, if I try to view it as a different user, I can't. If I change the permissions on ~/ to 711, then I can read it.
So is it safe to say that in order for anyone to access a file in one of my directories the directory MUST be executable?
How could I give someone access to a file without him being able to see the contents of the folder its in? AND, is there a way to share a folder without having to make all of its parent directories executable?
For example
/home (drwxr-xr-x)
/greg (drwx------)
/tmp (drwx------)
/file (-rw-rw-rw-)
The file "file" is not readable by anyone because /home/greg/tmp is not executable.
If I make /home/greg/tmp executable, anyone can list the files there.
I want to make "file" viewable without making "tmp" viewable.