<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Macos on ( •̅ɞ•̅ ) nicolanore</title><link>/blog/macos/</link><description>Recent content in Macos on ( •̅ɞ•̅ ) nicolanore</description><generator>Hugo</generator><language>en-uk</language><lastBuildDate>Sat, 16 Mar 2024 22:47:08 +0100</lastBuildDate><atom:link href="/blog/macos/index.xml" rel="self" type="application/rss+xml"/><item><title>MacOS Terminal Touch ID for sudo</title><link>/macos-terminal-touch-id-for-sudo/</link><pubDate>Sat, 16 Mar 2024 22:47:08 +0100</pubDate><guid>/macos-terminal-touch-id-for-sudo/</guid><description>&lt;p&gt;In the macOS terminal you can enable Touch ID to use sudo without typing your password.&lt;/p&gt;
&lt;p&gt;&lt;img src="image.png" alt="Touch ID for sudo"&gt;&lt;/p&gt;
&lt;p&gt;To enable sudo authentication with Touch ID on macOS, you need to add :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e2e4e5;background-color:#282a36;-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 style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&lt;/span&gt;&lt;span&gt;auth sufficient pam_tid.so
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;to the file &lt;code&gt;/etc/pam.d/sudo&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="step-by-step"&gt;Step by step&lt;/h2&gt;
&lt;p&gt;First create a backup :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-zsh" data-lang="zsh"&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&lt;/span&gt;&lt;span&gt;sudo cp /etc/pam.d/sudo /etc/pam.d/sudo.bak
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Then edit the file with your favorite editor :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#e2e4e5;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-zsh" data-lang="zsh"&gt;&lt;span style="display:flex;"&gt;&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"&gt;1&lt;/span&gt;&lt;span&gt;sudo nano /etc/pam.d/sudo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add the following line in the file :&lt;/p&gt;</description></item></channel></rss>