Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

Just to see what would happen, I made a user named sudo on my Arch Linux machine. Attempting to sudo this user Sudo, I type 'sudo sudo'. this brings up the usage of the sudo command. I try 'sudo sudo sudo', which after making me enter my sudo password shows the usage. I type 'sudo sudo sudo -i' which shows me the usage and than leaves me as root. Is there any way at all to sudo sudo?

Mike
2011-03-07 21:46:00
By default sudo will use the root user for the command.If you want to run a command as a specific user the proper usage is
MAKEUSEOF VIDEO OF THE DAY
SCROLL TO CONTINUE WITH CONTENT
sudo -u In your case that would be sudo -u Sudo . But I'm not sure if sudo is case-sensitive in terms of the username. I only use it to run commands as root
Mike
2011-03-07 21:49:00
sorry, Disqus always manages to screw up my formation ;-)Here's the man page from Debian:http://manpages.debian.net/cgi-bin/man.cgi?query=sudo&locale=en