Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How to make jailed shell?

jailed shell means limited shell account for linux users. (as cpanel defination)

I don't use any control panel like cpanel.

share|improve this question
1  
We need way more details of what you're trying to do. –  Chris S Jul 13 '11 at 13:52

2 Answers 2

There is a lot of documentation available for jail on the net. What you specifically need will depend on your specific linux distro and what you want to achieve exactly.

A good starting point might be http://rhcelinuxguide.wordpress.com/2006/07/02/linux-jail/ - first Google result for "jail linux".

share|improve this answer

A simple alternative to complex jail is assigning lshell to the concerned user(s).

lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.