<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sudo on BAFM</title><link>https://christian.blog.pakiheim.de/tags/sudo/</link><description>Recent content in Sudo on BAFM</description><generator>Hugo -- 0.160.1</generator><language>en</language><lastBuildDate>Thu, 12 Nov 2009 17:45:43 +0000</lastBuildDate><atom:link href="https://christian.blog.pakiheim.de/tags/sudo/index.xml" rel="self" type="application/rss+xml"/><item><title>Configuring nagios-plugins-zypper</title><link>https://christian.blog.pakiheim.de/posts/2009-11-12_configuring-nagios-plugins-zypper/</link><pubDate>Thu, 12 Nov 2009 17:45:43 +0000</pubDate><guid isPermaLink="false">http://blog.barfoo.org/?p=2801</guid><description>&lt;p&gt;Since I&amp;rsquo;m running check_zypper via nrpe (which in turn runs as nobody), I need to set up sudo. In order for the plugin to work, we need to add the following line to /etc/sudoers (by means of visudo):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt" id="hl-0-1"&gt;&lt;a class="lnlinks" href="#hl-0-1"&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;nobody ALL = NOPASSWD: /usr/bin/zypper sl, /usr/bin/zypper --non-interactive --no-gpg-checks --terse list-updates
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;(Keep in mind this needs to be a single line &amp;hellip;)&lt;/p&gt;</description></item></channel></rss>