Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-22-2005, 12:54 PM
|
#1
|
|
Member
Registered: Aug 2004
Location: Maine
Distribution: Gentoo Linux
Posts: 239
Rep:
|
Jailing a user to a specific folder ONLY
Lets say I have a user John, and He owns a specific folder on the server. Is there a way to keep him 'jailed' to this folder ONLY? That includes not being able to cd / or anywhere outside this folder. It would be like how the /root folder is for a normal user. They cant enter it, but all files and folders for this 'jailed' user would be simular. Hard to explain but I hope you get what I mean. Thanks alot.
|
|
|
|
09-22-2005, 01:29 PM
|
#2
|
|
Senior Member
Registered: Aug 2005
Posts: 1,755
Rep:
|
search for "chroot"
|
|
|
|
09-23-2005, 05:25 AM
|
#3
|
|
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260
Rep:
|
Hi GUIPenguin,
A really thoughtful question that was. You can set access restrictions with ACL or Access Control List, just the way you mentioned. The documentation will be available online.
vimal...
|
|
|
|
09-23-2005, 06:16 AM
|
#4
|
|
Member
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441
Rep:
|
Jailing is a concept usually associated with "chroot" command under Linux. By this one can ipmlement a Jail where the insiders would consider them as "/"
For example think you log in to a shell and now you are in the directory "/home/guip". Then you issue this command
chroot /home/guip
After this for that shell login (until you logout) "/" directory would be "/home/guip". So if u do "cd /" you would actually be changed to "/home/guip". Hierarchy would be relative to that point.
Your actual requirement needs more work. But I think there are ways it could be done.
Last edited by SkyEye; 09-23-2005 at 06:18 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:45 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|