LinuxQuestions.org
Review your favorite Linux distribution.
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 02-07-2012, 06:15 PM   #1
ghandizzle8
Member
 
Registered: Jun 2010
Posts: 30

Rep: Reputation: 0
Restrict Users to their Home DIrectory


Good Day All,

Iam still a bit new to this whole linux thing. Iam using fedora and i have created a bunch of users.

How do i restrict users to the own directory?

When i check online, i see the term called Jailing users. But iam not really sure what that is about. What i want is for users to be able to see their home directory. I do not want them to be able to navigate past their home directory.

Any help on this matter would be greatly appreciated.

When i check online...iam not seeing the other tool called rssh which says it can restrict users to a particular folder...iam assuming that can work..having issue with that also...when i try it i get a 128 error using an ftp client..

Brian

Last edited by ghandizzle8; 02-07-2012 at 07:34 PM. Reason: Addition
 
Old 02-07-2012, 09:34 PM   #2
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
how are the users logging into the system? (After they log in , its then that you want to bound them to their home directories only ?)
 
Old 02-07-2012, 10:36 PM   #3
Linux-Rocks
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Rep: Reputation: Disabled
Not sure what you mean ghandizzle8, but you can restrict users to their own home directory by doing
Code:
chmod 700 /home/username
No other user except for root and the owner can enter the directory.
 
Old 02-08-2012, 01:23 PM   #4
ghandizzle8
Member
 
Registered: Jun 2010
Posts: 30

Original Poster
Rep: Reputation: 0
Good Day,

After the users have logged in, i want to bound them to their directory.
Or any directory on my choosing

Last edited by ghandizzle8; 02-08-2012 at 01:30 PM. Reason: Additional text
 
Old 02-08-2012, 03:15 PM   #5
Linux-Rocks
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by ghandizzle8 View Post
Good Day,

After the users have logged in, i want to bound them to their directory.
Or any directory on my choosing
What you want is chroot jails. There are many topics on this by doing a google search also there are some on youtube. Most of the topics on jails is on applications. To bound users to jails most topics use ssh to define jails where users cannot move outside their home directory.

I've never done jails before but this is what I found thus far doing google and youtube searches on keywords linux chroot jails.

PS: I found an old LQ post on someone with similar issue
http://www.linuxquestions.org/questi...ectory-415231/

Last edited by Linux-Rocks; 02-08-2012 at 04:32 PM.
 
Old 02-08-2012, 03:21 PM   #6
Linux-Rocks
LQ Newbie
 
Registered: Feb 2012
Posts: 7

Rep: Reputation: Disabled
double post

Last edited by Linux-Rocks; 02-08-2012 at 04:27 PM.
 
Old 02-08-2012, 04:18 PM   #7
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
I asked how they are logging into the server because some steps are easier than others...If its ftp then its a 3 step process(with no shell access)..If its ssh then its more complicated.
 
  


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
ISPConfig: directory restrict FTP users not applying very fast gr33d Linux - Software 0 11-09-2009 09:44 AM
Users Home Directory rahmad Linux - Server 7 07-31-2008 02:24 AM
need to restrict users access to own home directory afgs_uk Linux - Security 2 11-08-2006 11:18 AM
How restrict to home directory in telnet session cuencano Linux - Security 3 06-14-2005 05:01 PM
restrict user to home directory at logon pragti Linux - Security 6 02-27-2004 08:00 AM

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

All times are GMT -5. The time now is 09:55 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
Open Source Consulting | Domain Registration