ghantoos / lshell

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.
GNU General Public License v3.0
435 stars 112 forks source link

chroot #143

Closed Hodor228 closed 8 years ago

Hodor228 commented 8 years ago

chroot not worked... My rule for user "admin": [admin] allowed: ['ls','echo','cd','ll','cp','mv'] strict: 1 warning_counter: 2

timer: 5

chroot = '/home/admin' path: '/home/admin/' home_path: '/home/admin/' scp: 1 sftp: 1 overssh: ['ls', 'rsync']

Still I can navigate through the folders /etc, /var, and so on. I thought it would be like this http://wiki.enchtex.info/howto/ssh_sftp block moving down ../admin

How to fix chroot for me?

UPD: Version lshell-0.9.18, used WinSCP SFTP connect Lock for SSH works good but SFTP not, the user can navigate through all the catalogs etc,var, proc, usr and so on

ghantoos commented 8 years ago

Hi @Hodor228

Sorry for the delay. Actually, lshell does not work with SFTP yet, only SSH. It in the todo-list, but not yet implemented. Sorry for that!

Cheer