Open hendralinux opened 7 years ago
Hello @hendrahendra,
by the lshell
configuration you can disable some chars like in the following example:
[default]
allowed : ['ls','pwd']
forbidden : [';', '&', '|']
Could it be that you restricted the pipe |
char in your /etc/lshell.conf
?
Regards, Adriano
I'm planning to use lshell to restrict the netdump user in RHEL 7. When setting up kdump, the
kdumpctl propagate
will execute the following command:exec sh -c 'umask 077; mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1; if type restorecon >/dev/null 2>&1; then restorecon -F .ssh .ssh/authorized_keys; fi'"
and failed with the
*** forbidden char/command over SSH:
error, even after allowing everything used by that command in the lshell.conf.Any suggestion on how to make this work?