LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 09: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 08:15 PM. Reason: Elaborate posting
 
Old 05-31-2009, 04:58 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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, 03: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, 04: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, 05:46 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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 05:35 PM
Webmin Restricted Access newinlinux Debian 4 11-28-2005 09:47 PM
Restricted access sachinh Linux - Security 2 09-29-2004 03:30 AM
can't set restricted access thebravenoob Linux - Wireless Networking 2 03-19-2004 12:48 PM
Is Restricted SSH Access Possible? retep Linux - Security 2 09-27-2003 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 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