<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><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">
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>> 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>> A<br>><br>><br><b><span style="font-weight: bold;">From:</span></b> Chris MacDonald <chris@fourthandvine.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:40:25 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: ssh and sudo</font><br><br>>Someone here might be able to describe a setup wherein this would work<br>>solely with ssh and sudo being used, but have you considered nis?<br>>Centralizing authentication would make parts of what you're wanting to<br>>do a lot easier.<br>><br>>Chris<br>><br><br><br>Tx Chris, but what do you mean exactly by centralized authentication? The situation here is that I maintaining my converted friends machines (6 at the moment but soon a couple more). I made them switch from Vista to Ubuntu. the deal we agreed upon is "OK we go with Ubuntu but you maintain the machine". Having machine
being located remotely how can I have centralized authentication. I am ready to try a better solution than mine. I am open to any suggestion that would make my life easier.<br><br>A<br><br><br><br></div><br></div>
</div><br>
</body></html>