<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><b><span style="font-weight: bold;"></span></b>On Tue, Nov 16, 2010 at 5:28 PM, Arnaud G <<a ymailto="mailto:lepelerin2002@yahoo.com" href="mailto:lepelerin2002@yahoo.com">lepelerin2002@yahoo.com</a>> wrote:<br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">> Hi,<br>><br>> Here is what I would like to do in my environment<br>><br>> env: all machines running Ubuntu 10.04 LTS.<br>> all machines running openssh-server and openssh-client<br>><br>> User "A" on machine "a" and user "B" on machine "b", user "C" on machine "c"<br>> and so forth ...<br>><br>> First I want to be able to ssh to "b" from "a" without the remote ("B") user<br>> password. So login as "B" on "b" from "a"
 with "A".<br>> I was successful setting that up following these instructions:<br>><br><span>> <a target="_blank" href="http://linuxproblem.org/art_9.html">http://linuxproblem.org/art_9.html</a></span><br>><br>> Now what I want to do is to use sudo on "b" as "B" with "A" 's password or<br>> no password. I would prefer to use my ssh key for that.<br>><br>> Setting up the sudoers file with the NOPASSWD option is not an option. I<br>> want user "B" to keep her sudo password.<br>><br>> I have been trying many things I could find on the web, but to no<br>> availability.<br>> Every time I try to sudo on "b", it asks for "B" 's password.<br>><br>> Any chance that it can be done. If yes could you point me in the right<br>> direction.<br>><br>> But first is it the best way to do it.<br>> Thank you in advance for sharing your knowledge.<br>><br><br><b><span style="font-weight: bold;">From:</span></b> Mark
 <mhullrich@gmail.com><br>
<font face="Tahoma" size="2"><b><span style="font-weight: bold;">To:</span></b> "Ubuntu user technical support, not for general discussions" <ubuntu-users@lists.ubuntu.com><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, November 16, 2010 9:39:29 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: ssh and sudo</font><br>Despite your relatively clear description of what you are doing and<br>want to do, I'm still a little confused by this statement:<br><br>> Every time I try to sudo on "b", it asks for "B" 's password.<br><br>>What user is the "I" trying to sudo on "b" from where as what user?<br><br>Sorry for not being clear. the "I" user is user "A". When "A" is connected to "b" as "B" and try to run sudo "command" on "b" ... it asks for "B" 's password.<br><br>>When you use sudo to run a command, you have to input your password,<br>>not someone else's.  Does that help or am I not understanding
 the<br>>situation/question?<br><br>That what I thought. But if "B" types "A" 's password it does not work (Sorry, try again). It needs "B" 's password to work. So the password being asked here is "B" 's password. I can test at the moment because I know "B" 's password.<br><br>Hope it clarifies the situation.<br><br>Tx for your input<br><br><br><br>-- <br>ubuntu-users mailing list<br><a ymailto="mailto:ubuntu-users@lists.ubuntu.com" href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></div><br></div>
</div><br>

      </body></html>