Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
We need way more details of what you're trying to do. – Chris S Jul 13 '11 at 13:52

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


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.