ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Tip: How to configure sudo properly


From: Stuart Hughes
Subject: Re: [Ltib] Tip: How to configure sudo properly
Date: Sat, 04 Jul 2009 10:44:58 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Svein,

Thanks for the tip!

Regards, Stuart

Svein Seldal wrote:
Hi guys

I'd like to share a small experience with sudo -- it not directly linked to LTIB, but it's for all you guys out there struggeling with similar symptoms. For the record I'm running Ubuntu Jaunty (9.04).

I had a problem with sudo where it kept asking me for password, even despite it was properly configured.

You can list the valid sudo commands with:

$ sudo -l
User foobar may run the following commands on this host:
    (root) NOPASSWD: /usr/bin/rpm
    (root) NOPASSWD: /opt/freescale/ltib/usr/bin/rpm
    (ALL) ALL

Here's the catch 22: The "(ALL) ALL" line MUST be located above our NOPASSWD lines. I below, the ALL specifier will override the NOPASSWD commands and thus re-request a password. Hence the output must look something like this:

$ sudo -l
User foobar may run the following commands on this host:
    (ALL) ALL
    (root) NOPASSWD: /usr/bin/rpm
    (root) NOPASSWD: /opt/freescale/ltib/usr/bin/rpm

Just make sure the NOPASSWD lines are at the bottom of the sudoers file. It will save you time and annoance!


Best regards,
Svein


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]