10 Oct
2021
10 Oct
'21
11:31
On Sun, 10 Oct 2021 13:18:06 +0200
"jdd@dodin.org"
Le 10/10/2021 à 12:55, Adam Mizerski a écrit :
sudo -u news -s /bin/bash command
# LANG=US ; sudo -u news -s /bin/bash ls /usr/bin/ls: /usr/bin/ls: cannot execute binary file
There's a -c missing. (ls is not a script file so bash won't run it as one). Try # LANG=US ; sudo -u news -s /bin/bash -c ls
:-( thanks jdd