LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 11-30-2006, 11:58 PM   #1
bullfrog1870
LQ Newbie
 
Registered: Nov 2006
Posts: 14

Rep: Reputation: 0
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?
 
Old 12-01-2006, 12:31 AM   #2
crazyjimbo
Member
 
Registered: Mar 2006
Location: Edinburgh
Distribution: Debian Etch, Gentoo
Posts: 90

Rep: Reputation: 16
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
 
Old 12-01-2006, 01:07 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
You wouldn't want other users to be able to cd to those directories either, though...
Code:
# cd /home
# chmod -R 700 *
 
Old 12-01-2006, 07:39 AM   #4
bullfrog1870
LQ Newbie
 
Registered: Nov 2006
Posts: 14

Original Poster
Rep: Reputation: 0
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!
 
Old 12-06-2006, 01:46 PM   #5
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 210

Rep: Reputation: 30
Exclamation warning

Still you are warned....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relocating user home directories to a network share... gerhardb Linux - General 1 09-14-2006 08:19 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
SMB directories not accessible O(V)eGA_l2el) Fedora 4 05-21-2006 05:49 PM
Samba - home directory not accessible essdeeay Linux - General 2 03-31-2006 12:59 PM
An NTFS partition not accessible to the normal user fiod Linux - General 2 09-28-2003 11:29 AM


All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration