0
1
I need sudo to work, well not sudo itself but a way of allowing the sudo commands to work as described here.
This would be great however the sudo lines have extra arguments, like :
sudo -u user bash -c 'uptime'
And if I were to use the bash in the link above I simply get the output
/usr/bin/sudo: line 3: -u: command not found
Is there anyway around this? To make it run from the quote, instead of perhaps -c.
The lines are sent remotely, and they're in that format. The user they run from is not important in this case, just need the rest to execute – Marcus Hughes – 2011-11-09T10:29:06.807
OK, I see. Updated. – Andrew Schulman – 2011-11-09T10:39:12.817