<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Permissions - Category - Fermín&#39;s blog</title>
        <link>https://fermino.me/categories/permissions/</link>
        <description>Permissions - Category - Fermín&#39;s blog</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Mon, 22 Jan 2024 22:46:28 -0300</lastBuildDate><atom:link href="https://fermino.me/categories/permissions/" rel="self" type="application/rss+xml" /><item>
    <title>On sudoers.d rules precendece</title>
    <link>https://fermino.me/posts/on-sudoers-precendece/</link>
    <pubDate>Mon, 22 Jan 2024 22:46:28 -0300</pubDate><author>
        <name>Fermín Olaiz</name>
    </author><guid>https://fermino.me/posts/on-sudoers-precendece/</guid>
    <description><![CDATA[<blockquote>
  <p>Disclaimer: this is a bit of a repost, but I thought I might share the experience so that others have an easier time finding the solution.</p>

</blockquote><p>So, yesterday I learned something interesting about sudoers rules precedence.</p>
<p>I wanted to make a script that detected the current status of <code>tlp</code> to display it in waybar, and for that I needed to execute <code>tlp-stat</code> as root. Because it&rsquo;s a script that is executed every 10 seconds or so I can&rsquo;t have sudo asking for my password every single time, so I added a sudoers rule.</p>]]></description>
</item></channel>
</rss>
