<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on Mish Ochu</title><link>https://mishochu.com/categories/linux/</link><description>Recent content in Linux on Mish Ochu</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 23 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://mishochu.com/categories/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Adding Yourself to Sudoers</title><link>https://mishochu.com/posts/adding-yourself-to-sudoers/</link><pubDate>Sun, 14 Feb 2021 08:31:00 +0000</pubDate><guid>https://mishochu.com/posts/adding-yourself-to-sudoers/</guid><description>&lt;p&gt;Adding my account to sudoers is one of the setup steps I repeat on a new Debian machine. I prefer Debian to Ubuntu, though that is mostly habit.&lt;/p&gt;
&lt;h2 id="add-the-account"&gt;
 Add the account
 &lt;a class="heading-link" href="#add-the-account"&gt;
 &lt;i class="fa fa-link" aria-hidden="true"&gt;&lt;/i&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;First, assume root and authenticate when prompted.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;su -
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Open the sudoers file through &lt;code&gt;visudo&lt;/code&gt;.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;visudo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I add my account after the root entry, replacing the placeholder with my username.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;lt;your_account_here&amp;gt; ALL=(ALL:ALL) ALL
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Save the file and exit the editor, then leave the root session.&lt;/p&gt;</description></item></channel></rss>