Lshell (Development wishes)

Dear developers. Please consider adding lshell to the panel GitHub - 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.

Excellent and safe shell. I would really like it to be out of the box in version 1.9.
Thank you!

You can install it on your own:

sudo -i
pip install limited-shell --break-system-packages
curl -fsSL "https://raw.githubusercontent.com/ghantoos/lshell/refs/heads/master/etc/lshell.conf" -o /etc/lshell.conf
echo '/usr/local/bin/lshell' >> /etc/shells

Now you can assign lshell to any user via Web UI or from command line:

v-change-user-shell YourUser lshell
2 Likes

Yes, I already did that. After which I wrote on this forum. It would just be nice if it was by default after installation.

It is far better to not force things like that on everyone. If you want it, you can add it to your server. There is no need to make everyone install something that most have no use for.

3 Likes

v-add-user-ssh-jail tests3
invalid shell, /srv/jail/tests3/usr/local/bin/lshell does not exist

Hello. After running this command I get an error. It doesn’t matter what shell is installed, bash, sh, lshell, etc. How can I fix it?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.