LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2003, 12:08 PM   #1
herc
Member
 
Registered: Jul 2003
Posts: 90

Rep: Reputation: 15
How to lock user in /home/user


How can I lock users to /home so they can't browse around?

Using RH9
 
Old 09-15-2003, 12:39 PM   #2
Hans Zarkoff
Member
 
Registered: Apr 2002
Location: Canada
Distribution: Slackware
Posts: 58

Rep: Reputation: 15
Go here for an explanation to keep users away from other users' accounts:
http://lists.debian.org/debian-user/.../msg00283.html

As for the rest of the filesystem... There *shouldn't* be a problem with them being able to zip around. Although you are running Red Hat which is known for local security vunerabilities. As long as you keep an eye on Red Hat security updates, there shouldn't be a problem...
 
Old 09-15-2003, 12:41 PM   #3
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
I don't think that this is easy to do. Read up about chroot, but be forewarned that doing a chroot jail securely is a headache to maintain for more than a user or two. In essence, chroot creates an environment where a user sees the directory of your choice (often /home/username) as the "root" directory (i.e., /). But this means that all of the utilities that they need to run (like bash, for example) have to have copies moved into their new /bin directory (or sbin if they need access to those programs). You have to disable certain features in many programs: shelling out to a command line. vi can execute a command line from inside vi, and if you don't disable that, then they can still go where you don't want them to. Mail can do this, too.

In any event, chroot will lead you down the right path.

Cheers--
Charles
 
Old 09-15-2003, 12:50 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
http://www.gsyc.inf.uc3m.es/~assman/jail/
 
  


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 03:09 PM
Load kde profile from /mnt/removable/user instead of /home/user preacher.ca Linux - General 3 12-02-2005 04:00 PM
lock new user into home dir eyewittness Linux - Security 4 06-19-2005 01:33 PM
VSFTPD - lock user to home directory ohleary Linux - Software 3 11-20-2003 03:04 PM
Lock user in their home dir MarleyGPN Linux - Software 1 04-26-2003 06:12 AM


All times are GMT -5. The time now is 06:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration