-1

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.

suzannak
  • 1
  • 1

2 Answers2

0

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

dunxd
  • 9,482
  • 21
  • 80
  • 117
0

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.

aif
  • 371
  • 1
  • 8