LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-16-2010, 01:42 AM   #1
thebomb
LQ Newbie
 
Registered: Dec 2009
Location: Johannesburg
Distribution: Centos 5.4
Posts: 7

Rep: Reputation: 0
Restricting users to two directories Centos 5.3


Hi,

I need some kind of step by step process to restrict my users to only have access to directories that I specify ?

For example user joe can only access his home directory, read access to /tmp and read access to /var/log/httpd ?

Is this possible ?

Thank you.
 
Old 02-16-2010, 02:01 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
For normal/sane operation, the user will need rw access to his home dir and /tmp.
The default setup will take care of that for you.

For /var/log/httpd you'll probably need an acl :
http://linux.die.net/man/1/setfacl
http://www.vanemery.com/Linux/ACL/linux-acl.html
 
  


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
Restricting users? sdouble Linux - Newbie 5 07-05-2006 07:48 PM
chroot jail with rssh / restricting users to individual directories rob_xx17 Linux - Security 3 01-23-2006 04:28 AM
Restricting su to certain users roadin Suse/Novell 4 03-15-2005 01:17 PM
Restricting FTP Users mtellin Linux - Networking 1 02-28-2002 09:54 PM
restricting users to one folder flip-x Linux - Security 0 02-18-2001 06:37 PM


All times are GMT -5. The time now is 11:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration