LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2009, 10:03 PM   #1
ccemberson
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Setup restricted access to directory


I'm trying to setup restricted access to a directory for two users. I'm a newbie. How do I do it? I have to set it up so that two users have full (read, write and execute) access to the private directory I have set up. All others users are to be completely restricted from accessing that directory.

Last edited by ccemberson; 06-01-2009 at 09:15 PM. Reason: Elaborate posting
 
Old 05-31-2009, 05:58 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 376Reputation: 376Reputation: 376Reputation: 376
Quote:
Originally Posted by ccemberson View Post
I'm trying to setup restricted access to a directory for two users. I'm a newbie. How do I do it?
Please elaborate a little bit as to what sort of restrictions you are referring to.

In other words, what directory permissions you would like to grant/deny for each user.
 
Old 06-01-2009, 04:09 AM   #3
synss
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian, Gentoo, Mac OS X
Posts: 137

Rep: Reputation: 22
I guess you should look into groups and permissions. But as the previous poster said, without further information on what you are actually trying to do, we cannot provide you with a detailed how to.
 
Old 06-02-2009, 05:34 PM   #4
ccemberson
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
I'm trying to setup restricted access to a directory for two users. I'm a newbie. How do I do it? I have to set it up so that two users have full (read, write and execute) access to the private directory I have set up. All others users are to be completely restricted from accessing that directory.
 
Old 06-02-2009, 06:46 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
In that case, create a new user/group that owns the dir and add the 2 users to that group.
Use

chmod g+s <dir>

to force group ownership of all files in the dir.

Use

chmod o= <dir>

to remove access for 'others'
 
  


Reply

Tags
access, directory, restricted


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
Setup htpasswd on directory but allow access to index file benr77 Linux - Server 3 04-19-2007 06:35 PM
Webmin Restricted Access newinlinux Debian 4 11-28-2005 10:47 PM
Restricted access sachinh Linux - Security 2 09-29-2004 04:30 AM
can't set restricted access thebravenoob Linux - Wireless Networking 2 03-19-2004 01:48 PM
Is Restricted SSH Access Possible? retep Linux - Security 2 09-28-2003 12:35 AM


All times are GMT -5. The time now is 10:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration