LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   home directories accessible only to user (https://www.linuxquestions.org/questions/linux-security-4/home-directories-accessible-only-to-user-506402/)

bullfrog1870 11-30-2006 10:58 PM

home directories accessible only to user
 
Hi, I'm trying to clean up security issues around our users.

How can I make sure all user home directories can be accesed only by the user?

crazyjimbo 11-30-2006 11:31 PM

Change the permission of the home folder so they can only be read by the user that owns them. (Default is readable but not writable by anyone. You can do this with:

Code:

chmod go-r *
in the home directory. It removes the read permission from 'group' and 'other', leaving it only for the user that owns the folder.

DISCLAIMER: Make sure you know what you are doing before you fiddle with permissions, it can make a mess... You have been warned :)

James

chort 12-01-2006 12:07 AM

You wouldn't want other users to be able to cd to those directories either, though...
Code:

# cd /home
# chmod -R 700 *


bullfrog1870 12-01-2006 06:39 AM

Quote:

Originally Posted by chort
You wouldn't want other users to be able to cd to those directories either, though...
Code:

# cd /home
# chmod -R 700 *



Exactly what I was looking for. Thank you both!

aq_mishu 12-06-2006 12:46 PM

warning
 
Still you are warned....


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