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
436 stars 112 forks source link

SyntaxError: EOL while scanning string literal #78

Closed Germano0 closed 10 years ago

Germano0 commented 10 years ago

FROM https://bugzilla.redhat.com/show_bug.cgi?id=1109521

Description of problem: After logging in a SSH account, I got message:

caTraceback (most recent call last): File "/usr/bin/lshell", line 54, in main() File "/usr/bin/lshell", line 40, in main userconf = CheckConfig(args).returnconf() File "/usr/lib/python2.7/site-packages/lshell/checkconfig.py", line 137, in init self.get_config() File "/usr/lib/python2.7/site-packages/lshell/checkconfig.py", line 367, in get_config self.get_config_sub(self.user) File "/usr/lib/python2.7/site-packages/lshell/checkconfig.py", line 401, in get_config_sub for path in eval(stuff): File "", line 1 ['/var','/usr/] ^ SyntaxError: EOL while scanning string literal Connection to removed closed.

Version-Release number of selected component (if applicable): lshell-0.9.16-1.fc20.noarch

xlr-8 commented 10 years ago

Though I do get the issue there (with the SSH connection being closed), didn't you miss typed variable in your lshell config file? => ['/var', '/usr/] Looks like it's missing a quote. Otherwise may you provide your config file for testing purpose?

Germano0 commented 10 years ago

You are right, the problem derives from a missing quote. Now everything works