SyntaxFix
Write A Post
Hire A Developer
Questions
try running:
su -c "Your command right here" -s /bin/sh username
This will run the command as username given that you have permissions to sudo as that user.