<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 6:27 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;">><br>> 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<br>>> "c"<br>>> and so forth ...<br>>><br>>> First I want to be able to ssh to "b" from "a" without the remote ("B")<br>>> 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>> From: Chris MacDonald <<a ymailto="mailto:chris@fourthandvine.com" href="mailto:chris@fourthandvine.com">chris@fourthandvine.com</a>><br>> To: "Ubuntu user technical support, not for general discussions"<br>> <<a ymailto="mailto:ubuntu-users@lists.ubuntu.com" href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a>><br>> Sent: Tue, November 16, 2010 9:40:25 PM<br>> Subject: Re: ssh and sudo<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<br>> situation here is that I maintaining my converted friends machines (6 at the<br>> moment but soon a couple more). I made them switch from Vista to Ubuntu. the<br>> deal we agreed upon is "OK we go with Ubuntu but you maintain the machine".<br>> Having machine being located remotely how can I have centralized<br>> authentication. I am ready to try a better solution than mine. I am open to<br>> any suggestion that would make my life easier.<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 11:13:06 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: ssh and sudo<br></font><br>>Ok then it sounds like nis might not be the best solution for you. If<br>>it was all on a LAN and everyone (or most people) needed access to<br>>most of the machines nis night make sense, but if it's just you, it's<br>>probably more work than it's worth. If you're just maintaining the<br>>machines, what's wrong with creating an account for yourself on all of<br>>the machines and giving yourself sudo privileges? What would you<br>>envision yourself doing on the remote machines that wouldn't work with<br>>that setup?<br>><br>>Chris<br>><br><br> I can easily create an
account for myself, but here is my question. If I want/have to configure something that is related to their own account (ex install a program, configure their own settings, by using my own account would the settings/modifications be applied to their own account?<br>If so you just solved my problem.<br><br>Tx <br><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:<br>> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><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>