LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 04-26-2005, 08:07 PM   #1
ReverB
LQ Newbie
 
Registered: Apr 2004
Location: DC
Distribution: Suse 9.2, Os x 10.3, Os x server
Posts: 9

Rep: Reputation: 0
General question about user accounts


I was curious if it was possible to set up certain user permissions so they could not browse anywhere besides their home folder. If there is how do you do this or could point me in the right direction to find the answer?

If this is not possible what is the best way to secure the system without having to change up permissions of everything.

Thanks for the help in advance
 
Old 04-26-2005, 08:10 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
Keyword would be.. chroot
 
Old 04-26-2005, 08:21 PM   #3
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
A chroot would render the system useless for a user since you can't access anything outside of the jail. So then you will have to copy all the libs and binaries and config files into the jail which beats the purpose...

What you want certainly isn't easy to achive and it requires a LOT of configuration. Have a look at http://acl.bestbits.at/ and decide if that's what you need. It could also be achived with SELinux but that's probably even harder to set up.
 
Old 04-26-2005, 10:00 PM   #4
ReverB
LQ Newbie
 
Registered: Apr 2004
Location: DC
Distribution: Suse 9.2, Os x 10.3, Os x server
Posts: 9

Original Poster
Rep: Reputation: 0
I am assuming at this point in the game I would like to go with chroot. I am looking at only restricting certain users to their home folders so they cant browse around my system. I am relatively new to linux and do not feel comfortable messing around with permissions on all of the system files since I am not completely sure how they interact and what attributes are needed for each.


I just want to restrict certain users to their home folders.

I have looked at a few pages about the chroot command but I am still a little unsure of the syntax of the statements and how to enter them.

lets just say I have a user named user1. If I wanted to lock him to the home directory what would I do?


What would the syntax of the command be?? Could someone please help?

I would really like to try to tinker with these commands but I have a feeling that I would somehow lock myself out of my system and have to reformat again

Thanks in advance
 
Old 04-26-2005, 11:10 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625

Rep: Reputation: 101Reputation: 101
I've used a package called jailkit which makes setting up a chroot jail fairly simple. Note that I said fairly -- it's a pretty advanced topic (but by no means impossible). Generally, the out of the box permissions on most distros are enough to keep users from doing major damage. You could also look into assigning them the restricted version of the bash shell (rbash, see the bash man page for more details).
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Accounts Cool_Hand_Luke Linux - Newbie 6 08-24-2005 08:35 PM
General Web question: How to have a user launch a text file alar General 2 05-19-2005 05:47 PM
Evolution General Setup Two Mail Accounts. Linutzo Linux - Newbie 1 04-21-2005 12:11 PM
General Linux Question from a windows user poonaninja Linux - Newbie 31 11-05-2004 07:01 AM
User Accounts kaplan71 Linux - General 1 07-08-2004 01:19 PM


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