LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2005, 10:21 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Permissions


I am trying to understand permissions for my Linux machine. If I had to 2 users:

- carlos
- laura

I don't want laura to be able to "cd" to anywhere beyond her home directory "/home/laura. How would this command be issued as root?

Thanks for any assistance.
 
Old 12-14-2005, 11:11 AM   #2
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 48
one possible solution would be to use restricted shell.
 
Old 12-14-2005, 11:23 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by logicalfuzz
one possible solution would be to use restricted shell.


Shouldn't there be a way to just set permissions?
 
Old 12-15-2005, 12:08 PM   #4
logicalfuzz
Member
 
Registered: Aug 2005
Distribution: Arch Linux
Posts: 291

Rep: Reputation: 48
Quote:
Originally Posted by Carlwill


Shouldn't there be a way to just set permissions?
oh yes there is. The 'x' permission for a directory is responsible for you being able to 'cd' into a directory. In other words.. if you remove the x permission for group/others , the respective individuals would not be able to cd into the directory (of'course unless you are owner of the directory or the root user). Try this by creating a folder in / directory.
BUT BE WARNED!!!!!
When you do that to system directories, you may face problems which may become very difficult to solve. Just imagine Laura not being able to login because she has no permission to enter /bin directory. So restricted shell is a reasonably good solution...wherin you can restrict the user to his/her home folder OR any other folder.

Last edited by logicalfuzz; 12-15-2005 at 12:10 PM.
 
Old 12-15-2005, 12:32 PM   #5
The_JinJ
Member
 
Registered: Apr 2004
Location: Scotland
Distribution: Suse, OpenWRT
Posts: 299

Rep: Reputation: 30
Have a look at Jailkit - http://olivier.sessink.nl/jailkit/ - easy enough to setup after a bit of messing about
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
Permissions Shifty02 SUSE / openSUSE 2 06-19-2005 05:45 AM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
No permissions herjoc Linux - General 4 06-10-2004 02:54 AM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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