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.
|
 |
08-14-2007, 04:31 AM
|
#1
|
Member
Registered: Jun 2004
Location: Nottingham, England
Posts: 89
Rep:
|
Prevent access to root folder
How do I stop users from entering the root home folder?
I would sooner not have standard users not poking around in there.
|
|
|
08-14-2007, 05:10 AM
|
#2
|
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191
Rep:
|
by default no standard user is allowed to enter the root folder.
|
|
|
08-14-2007, 06:23 AM
|
#3
|
Member
Registered: Jun 2004
Location: Nottingham, England
Posts: 89
Original Poster
Rep:
|
I created a standard user and managed to browse and read a script in the root's folder?
Im using arch linux.
I just tested this on a hosted shell which is running FreeBSD and I too as a standard user can view the contents of the root folder.
Last edited by ]SK[; 08-14-2007 at 06:25 AM.
|
|
|
08-14-2007, 06:26 AM
|
#4
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
By root folder do you mean /root or /?
|
|
|
08-14-2007, 06:35 AM
|
#5
|
Member
Registered: Jun 2004
Location: Nottingham, England
Posts: 89
Original Poster
Rep:
|
/root
<Guff to fill maximum 10 character limit>
|
|
|
08-14-2007, 06:38 AM
|
#6
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
This should do it:
chmod 700 /root
|
|
|
08-14-2007, 06:48 AM
|
#7
|
Member
Registered: Jun 2004
Location: Nottingham, England
Posts: 89
Original Poster
Rep:
|
Yep works great. Thanks.
|
|
|
All times are GMT -5. The time now is 07:48 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
|
|