LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I prevent users from seeing dir contents? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-prevent-users-from-seeing-dir-contents-311148/)

Jukas 04-08-2005 01:02 PM

Can I prevent users from seeing dir contents?
 
Is there a way that I can prevent other users from seeing outsider directories?

For example if I have the following

/home/usera
/home/userb

Is there a way I can prevent userb from being able to change to /home/usera ? If not is there a way at least I can prevent userb from being able to any of the file contents in /home/usera/ ?

calcon 04-08-2005 01:06 PM

I believe you need to use chmod

calcon

masonm 04-08-2005 02:41 PM

Yep, just change permissions to allow only the owner of that directory to view it.

sirclif 04-08-2005 03:22 PM

the command to do that could be

chmod 700 /home/usera

which you would have to run as user a or root

Jukas 04-08-2005 04:07 PM

Thanks for the response all. I ended up doing it with chmod o= /home/usera

Is chmod 700 /home/usera the numerical equivilant?

btmiller 04-08-2005 07:56 PM

No, you'd need go= to get the equivalent of numeric 0700.


All times are GMT -5. The time now is 02:43 PM.