![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| restricting access to a server | melanie_pfefer | SUN Solaris | 1 | 02-25-2008 11:55 AM |
| restricting root access | keith.m | UNIX for Advanced & Expert Users | 2 | 08-31-2006 04:56 AM |
| restricting access | max_min | SUN Solaris | 4 | 08-11-2004 11:20 PM |
| Restricting access to a machine by IP Address | patch | UNIX for Dummies Questions & Answers | 2 | 10-20-2003 11:46 AM |
| restricting access... | alwayslearningunix | Security | 9 | 05-09-2001 04:13 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Restricting access
I need to create a user that only has access to 1 directory (e.g. /vol/mita/test). The user needs to be able to rsh into that directory to run a script. The user should not be able to navigate to any other directories above /vol/mita/test. Any help would be appreciated!
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
have his shell run a chroot to lock him in. Check out the man page on chroot for info.
|
|
#3
|
|||
|
|||
|
Please forgive me, I am pretty new to this. I tried running the chroot command but with no success. If the user is "Mike" and the root directory should be /vol/mita/test , what would be the correct implementation of the chroot command?
|
|
#4
|
|||
|
|||
|
Made some progress, however after reading through previous posts on this subject I found that I can simply add the chroot command into the /etc/passwd file
Code:
user::500:500:restricted user:/vol/mita/test:/bin/chroot /vol/mita/test /bin/csh Any ideas? Am I implementing this command correctly? Thanks Nate |
|
#5
|
||||
|
||||
|
I well be well served to create a bin directory will all the utilities your chroot user need (including their shells) under their new root. They will not be able to execute code outside of their chroot environment.
|
||||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|