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

Internal error: command not executed #146

Open lmarkov opened 8 years ago

lmarkov commented 8 years ago

Hello, How can I execute command as:

find . -regextype posix-extended -regex '.*([a-zA-Z][0-9][0-9][.]php)$'

I removed this values in the configuration file but that did't help:

forbidden   : [';', '&', '|','`','>','<', '$(', '${']
ghantoos commented 8 years ago

Hi @lmarkov,

This seems to be due to the parser in lshell: it fails to properly interpret the regex content. I will try to look into this soon. It might be related to the lexer/parser issue that has been brought up to the frontpage lately.