LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Building a locked environment on a Centos machine (http://www.linuxquestions.org/questions/linux-security-4/building-a-locked-environment-on-a-centos-machine-918291/)

takayama 12-12-2011 04:45 AM

Building a locked environment on a Centos machine
 
Hello
Im looking to build system that lets a user (only one) ssh in. The user should log in to a directory and be locked into the home dir, i will also be looking to remove alot of other stuff so basicly the user only can execute one script.

Any tip? Im guessing some kind of chroot enviorment is the way to go?

kbp 12-13-2011 08:35 AM

Try the AllowUsers and ChrootDirectory options to sshd

lithos 12-13-2011 09:38 AM

Hi,

you can try restrict bash
or
chroot sshd


good luck

takayama 12-13-2011 05:44 PM

This was what i was looking for, thanks


All times are GMT -5. The time now is 01:48 AM.