[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Jailkit-users] jk_lsh: problem with single quotes / requested executabl
[Jailkit-users] jk_lsh: problem with single quotes / requested executable not found
Wed, 20 Apr 2011 16:39:53 +0200
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:184.108.40.206) Gecko/20110303 Thunderbird/3.1.9
I'm using jk_lsh in a chroot environment for a webserver. Really great
software! You have no interactive shell within the chroot (for security
reasons) but the application is able to execute system commands anyway.
Now I have a small problem: one of the web applications is passing the
commands with single quotes to jk_lsh. Unfortunately jk_lsh does not
strip the quotes and exits with a "requested executable not found" error:
jk_lsh -c "'/bin/ls' '-l'"
jk_lsh: jk_lsh version 2.13, started
jk_lsh: the requested executable '/bin/ls' is not found
jk_lsh -c '/bin/ls -l'
jk_lsh -c "/bin/ls -l"
are working fine.
Regular shells like (ba)sh can handle single quotes in a command:
sh -c "'/bin/ls' '-l'"
Any ideas why jk_lsh does not work with single quotes? Any help would be
- [Jailkit-users] jk_lsh: problem with single quotes / requested executable not found,