Linux - SecurityThis 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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.