<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sudoers on the art of simplicity</title><link>https://naoko.github.io/tags/sudoers/</link><description>Recent content in Sudoers on the art of simplicity</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 18 Feb 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://naoko.github.io/tags/sudoers/index.xml" rel="self" type="application/rss+xml"/><item><title>Smile every time you sudo</title><link>https://naoko.github.io/posts/2021-02-18-sudoers-lecture/</link><pubDate>Thu, 18 Feb 2021 00:00:00 +0000</pubDate><guid>https://naoko.github.io/posts/2021-02-18-sudoers-lecture/</guid><description>&lt;p&gt;
 &lt;img src="https://naoko.github.io/images/2021-02-18-groot.png" alt="groot"&gt;

&lt;/p&gt;
&lt;p&gt;If you want your terminal prompt to look like this every time you sodo, please continue reading.
note: i did on ubuntu so for other flavor, file path might be slightly different&lt;/p&gt;
&lt;h3 id="step-1-download-this-amazing-ascii-art-text-and-move-to-etcsudoersdsudoerslecture"&gt;step 1. download this amazing ascii art text and move to /etc/sudoers.d/sudoers.lecture&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;❯ curl -O https://caferock.org/chris/groot.txt
❯ sudo cp groot.txt /etc/sudoers.d/sudoers.lecture
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="step-2-edit-etcsudoers-or-etcsudoersdprivacy"&gt;step 2. edit /etc/sudoers (or /etc/sudoers.d/privacy)&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;Defaults lecture = always
Defaults lecture_file = /etc/sudoers.d/sudoers.lecture 
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id="lets-see-this-magnificent-art-3"&gt;Let&amp;rsquo;s see this magnificent art &amp;lt;3&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;# reset timestamp
❯ sudo -k 
# some sudo command
❯ sudo -l
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item></channel></rss>