LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Locking dirs so only the owner can access them (https://www.linuxquestions.org/questions/linux-newbie-8/locking-dirs-so-only-the-owner-can-access-them-217727/)

colabus 08-14-2004 11:16 PM

Locking dirs so only the owner can access them
 
Howdy guys,

I noticed the machines that i'm using at school have it so only the root user can access the root dir. I like that idea and was wondering how you go about setting it. But not only the root dir, what about other users?

Thanks

frob23 08-14-2004 11:55 PM

This is not wise to do for certain directories (example /usr and company).

But just chmod -R go-rwx /home/usrname

And then only the user will be able to read, write, or cd into their directories.

320mb 08-14-2004 11:57 PM

the command would be .....
Code:

chmod
roots home dir should already be accessible to root only!!

to change the users dir

Code:

chmod 700 /home/<user>
<edit/> read the man page first ,before you goof around with
chmod............

man chmod


All times are GMT -5. The time now is 11:58 PM.