The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-19-2001
Registered User
 

Join Date: Jun 2001
Posts: 7
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  
Old 07-19-2001
PxT's Avatar
PxT PxT is offline
Registered User
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
have his shell run a chroot to lock him in. Check out the man page on chroot for info.
  #3  
Old 07-19-2001
Registered User
 

Join Date: Jun 2001
Posts: 7
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  
Old 07-20-2001
Registered User
 

Join Date: Jun 2001
Posts: 7
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
I am assuming that there needs to be a /bin directory (which originally would be located in /vol/mita/test/bin/) with the csh command in the directory. However, when I try to su "user", I get an error that says "no shell".

Any ideas? Am I implementing this command correctly?

Thanks
Nate
  #5  
Old 07-21-2001
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,493
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0