LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-23-2006, 06:05 PM   #1
fluidicslave
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
permissions question


is it possible to use permissions in order to hide the home directorys of a single user from all other useres and if so how.?

I dont even want the other useres to know that the home directory exsitss
 
Old 07-23-2006, 06:49 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Making the contents invisible is very simple: just use chmod 700 DIRECTORY. This will set permissions to drwx------, allowing only the owner to read/write/list in that directory. Hiding the directory would be problematic because you'd have to deny read permissions to /home, unless you place that user's home directory somewhere else in the system.

Is there a particular reason you don't want other users to know the directory exists?
 
Old 07-23-2006, 07:24 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally Posted by fluidicslave
I dont even want the other useres to know that the home directory exsitss
All users have a home directory (so of course it exists). The home directory info for all users is publicly readable by everyone in /etc/passwd or similar file.
 
Old 07-23-2006, 08:22 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
The only way I have found to do this is a chroot jail.

The jail is basically a file system containing just the stuff the user needs and nothing else that the user gets chrooted too when he/she logs in.
 
Old 07-23-2006, 08:52 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Unfortunately, chroot jails have one significant disadvantage: software for use by users must be installed into each user's chroot jail, though this can be made easier by a bind mount. (Binding a partition for /usr, /etc, etc. for each user into their directory). In any case, chroot jails are generally impractical for large numbers of users on the same system.
 
  


Reply



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
Permissions Question BobNutfield Linux - General 6 05-08-2006 01:59 PM
Permissions question sammckee Linux - Newbie 3 09-23-2003 10:55 AM
Permissions Question? gsmonk Linux - General 3 08-27-2003 03:30 PM
Permissions question gauge73 Linux - Newbie 4 05-02-2003 04:33 PM
Permissions Question jkraeger Linux - General 1 02-25-2003 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:18 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
Open Source Consulting | Domain Registration