ssh and sudo

Smoot Carl-Mitchell smoot at
Wed Nov 17 04:08:34 UTC 2010

On Tue, 2010-11-16 at 19:45 -0800, Arnaud G wrote:

> OK. I can create my own account on their machine. My question is: If I
> need to configure/install something with sudo on "b" for "B" and I use
> my own account to do it, would the configuration/install be available
> for "B" 's account? If so you solved my problem,

If your user account has sudo privileges, you can just do:

sudo -i -u <user> <command>

This runs the <command> as <user> with all of <user>'s login

Smoot Carl-Mitchell
System/Network Architect
voice: +1 480 922-7313
cell: +1 602 421-9005
smoot at

More information about the ubuntu-users mailing list