4
rated 0 times
[
4]
[
0]
/ answers: 1 / hits: 3017
/ 2 Years ago, mon, june 27, 2022, 3:24:52
Is this normal?
> sudo -u misc -i "ls"
note test tmp
> sudo -u misc -i "ls ~"
-bash: ls ~: command not found
> sudo -u misc -i "ls ~"
-bash: ls ~: command not found
> sudo -u misc -i "foo=bar"
[misc]
Anything that's got a space in it seems to be interpreted as a single command, which is unrecognised. Even weirder, setting any environment variable drops me into the other user's account. How can I run those commands as expected?
More From » 10.04