LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-15-2006, 02:14 PM   #1
ginda
Member
 
Registered: Mar 2004
Distribution: SUSE8.2, 9.2, Knoppix
Posts: 323

Rep: Reputation: 31
how to prevent users navigating to certain directories


I am using fedora core 6 and i would like to prevent users cd into certain directories for example how normal users cannot cd into the root directory.

$ cd /root/
bash: cd: /root/: Permission denied

Thanks in advance
 
Old 12-15-2006, 02:32 PM   #2
bitva
Member
 
Registered: Dec 2002
Location: Los Angeles
Distribution: Debian
Posts: 72

Rep: Reputation: 15
chmod is how you can set/remove permissions on folders/files.

chmod go-rwx /usr/local/folder

would remove the group and other (guest basically) users from reading, writing and executing anything in /usr/local/folder.

man chmod for more info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
FTP users prevent browsing to other directories mephesto Linux - Software 2 05-07-2005 10:03 AM
prevent directories from being renamed chibi Linux - Newbie 7 04-29-2005 11:24 AM
help navigating directories zero-g Linux - Software 6 03-26-2004 08:20 AM
How to prevent users from --> Drogo Linux - Software 7 01-31-2004 11:03 PM
navigating sub directories with apache ixion Linux - Networking 4 09-22-2003 10:51 AM

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

All times are GMT -5. The time now is 08:41 PM.

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