How to run a command as a user without bash shell set?
There is actually one nifty way to do this - use thesu command with combination of two options s and c.
# su -s /bin/bash -c 'touch /tmp/file'What actually will happen here is basically overriding configured shell with the one passed with
"-s" option.
Brak komentarzy:
Prześlij komentarz