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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
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,189
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
|
|
Moderator
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: Arch/XFCE
Posts: 17,797
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:57 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
|
|