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
434 stars 113 forks source link

Allow git use #210

Open Drallert opened 3 years ago

Drallert commented 3 years ago

Hello, I want to use lshell for a server to restrict access, however I need the users to be able to execute git commands. I've already enabled the "git" command in /etc/lshell.conf and some things are working (git init, git config and such, haven't tried more tough) but whenever I try to "git clone " I get the following error:

fatal: cannot exec 'git-remote-https': Permission denied

How could I do this? Thanks in advance

anilgopa commented 3 years ago

What user is the lshell enabled for? Is it a non-root user? Verify if the same command runs with bash or any other shell first. It could be an issue with the user lacking enough permission to run the command irrespective of which shell is used.

demarcq commented 1 year ago

Did someone have fixed this issue? I have the same problem