LinuxQuestions.org
Help answer threads with 0 replies.
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 06-19-2005, 09:27 AM   #1
eyewittness
Member
 
Registered: Dec 2003
Location: Netherlands
Distribution: SuSe 9.0
Posts: 44

Rep: Reputation: 15
lock new user into home dir


Hi people,

Does someone know if its possible to create a user on redhat to lock that user in there homedirectory so its not possible to brows out of the home folder....
 
Old 06-19-2005, 10:02 AM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
It is not really possible to do anything useful with this, as the user will not be able to run any program. Not even ls or bash. Why want to do this? If you really want it, you must copy a shell to the user's home directory then chroot to it. You may need other files in the home, and I am not sure how to do the chrooting, as only root can chroot.
 
Old 06-19-2005, 11:10 AM   #3
eyewittness
Member
 
Registered: Dec 2003
Location: Netherlands
Distribution: SuSe 9.0
Posts: 44

Original Poster
Rep: Reputation: 15
cause i want to put a gameserver in his home and only give acces to a text editor and some build commands... are there other options to do it?
 
Old 06-19-2005, 11:42 AM   #4
RandomLinuxNewb
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 101

Rep: Reputation: 15
Look into either chroot or usermode linux. Chroot will require you to make a copy of your directory layout inside this users home direcotry. EVERYTHING that this user is going to need is going to have to be inside his directory. This includes copies of /etc, /bin, /proc, etc. So you will need to do some research into what each program is going to need access to.

The other option is to use usermode linux which lets you install a second copy of linux that is independent of the host, give the user access to that and he has his own "machine" that he can do what ever he want's with.
 
Old 06-19-2005, 12:33 PM   #5
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
Quote:
cause i want to put a gameserver in his home and only give acces to a text editor and some build commands... are there other options to do it?
Wouldn't the right file permissions achieve the same result with a lot less trouble?
 
  


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
Lock user in home dir JJX Linux - General 9 06-28-2011 02:09 PM
user home dir doesn't create when new user add dev_mohamed Linux - Software 3 01-12-2007 01:08 AM
recover user and home dir powadha Linux - General 5 04-16-2004 09:08 AM
how would i safely lock users to thier home dir? f1uke Linux - Security 2 07-22-2003 01:23 AM
Lock user in their home dir MarleyGPN Linux - Software 1 04-26-2003 05:12 AM


All times are GMT -5. The time now is 11:00 PM.

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