LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   restrict access to root / (https://www.linuxquestions.org/questions/linux-newbie-8/restrict-access-to-root-514317/)

yogaboy 12-28-2006 09:55 AM

restrict access to root /
 
Hi,

I've just noticed that as any user on my CentOS box I can run
cd /

and I can access the root file system. Obviously accessing the other dirs within it isn't possible without the correct permissions, but this is a worry to me.

I don't know how to stop this, and because of the root (account) = root (filesystem) in the eyes of Google I can't find any help on this.

I appreciate your consideration on this, it seems pretty important (to me).

jstephens84 12-28-2006 10:01 AM

Even though you can access the / filesystem try to create a directory. it should fail as a normal user unless you have changed your user permissions on the directory. I don't suggest taking permissions away from users on the / filesystem. They need access to that.

yogaboy 12-28-2006 10:03 AM

ok, thanks. I will try to be less anxious! :)

Prostetnic_Jeltz 12-29-2006 12:31 AM

Hi yogaboy -

note there is a very big difference between read and write permissions - and that permissions on a parent directory affect its child directories. it is obviously crucial that non-root users be able to read dir's below / -- in short, I agree with jstephens :)

here is a nice link that explains it well:

https://www.redhat.com/docs/manuals/...ownership.html

:cool:

yogaboy 12-31-2006 08:17 AM

thanks. I suppose I was a little rattled by the fact that they can see the filesystem, even parts to which they have no access. Obviously the preference would be for them to be unaware of these other bits, but I fully understand that to take away permissions to / would most likely cascade to other parts of the system.


All times are GMT -5. The time now is 04:12 AM.