Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-23-2006, 07:05 PM
|
#1
|
LQ Newbie
Registered: Jul 2006
Posts: 1
Rep:
|
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
|
|
|
07-23-2006, 07:49 PM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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?
|
|
|
07-23-2006, 08:24 PM
|
#3
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
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.
|
|
|
07-23-2006, 09:22 PM
|
#4
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
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.
|
|
|
07-23-2006, 09:52 PM
|
#5
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 11:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|