Quote:
Originally Posted by iamonly
All that I learned is that if in /home/, there exists a directory
drwx------ 2 root root 4096 2010-01-21 14:03 rootsdir
Then no user (except for root) can 'r' or 'w' or 'x' any entry which succeeds the dir. tree /home/rootsdir/.
Is this right? I just want an absolute answer for some security reasons.
|
Yes that is correct.
Quote:
Originally Posted by iamonly
I am wondering that how can raju.mopidevi's example
$ cd /media/dir1
bash: cd: /media/dir1: Permission denied
$cd /media/dir1/mydir1
$/media/dir1/mydir1 > ....
be true??! (Without saying that the current user is not changed)
|
I don't think it is true.
I can't repeat it on my system.
His argument was based on a different case, where the normal user owned a directory but was part of roots group.
But you can try it for yourself.
Be assured that a directory owned by root, with the permissions 750 is secure from other normal users, even if its contents are owned by those other users.
I can only speak for my systems of course.
I would be interested to see examples of anything that proves me wrong, but unless the top level directory has permissions like :
drwx------ 2 root root 4096 2010-01-21 14:03 rootsdir
Then they would be arguing a different case.
regards
Alan