LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Restricted Shell (https://www.linuxquestions.org/questions/linux-security-4/restricted-shell-8046/)

johnlee 10-27-2001 11:51 PM

Restricted Shell
 
Hi All,

Does any one know how to setup "restricted shell" on Redhat Linux 7.0 i want to restricted my telnet ssh users to their home directories they should n't navigate anywhere in the system
or can't go out from their home direcotry i heard about rbash(Restricted Shell) but when i set rbash it totally disable cd command my user can't cd direcotires reside in their home directory i want to allow them in their home directoires i just want to block them others dirs and updirs.

Regards,

John Lee

thristydesert@hotmail.com

unSpawn 10-28-2001 10:22 AM

IIRC, this can't be done with rbash, it simply doesn't allow cd'ing at all, using pipes or setting vars. You could try chroot, but the major downside to that is youve gotta set up a complete environment for each and every user.

johnlee 10-29-2001 05:36 AM

Ok But
 
Thanks unSpawn,

But could u tell me from where i can more learn about chroot() or could you tell how we can setup chroot

Thanks and Regards,

John Lee

thristydesert@hotmail.com

acid_kewpie 10-29-2001 08:02 AM

chroot is a standard unix command

man chroot


All times are GMT -5. The time now is 06:12 AM.