<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Touch ID on MeshNook</title><link>https://blog.meshnook.com/tags/touch-id/</link><description>Recent content in Touch ID on MeshNook</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 09 Oct 2026 08:28:02 +0800</lastBuildDate><atom:link href="https://blog.meshnook.com/tags/touch-id/index.xml" rel="self" type="application/rss+xml"/><item><title>macOS 通过Touch ID 验证 sudo</title><link>https://blog.meshnook.com/posts/2026/10/macos-sudo-touchid/</link><pubDate>Fri, 09 Oct 2026 08:28:02 +0800</pubDate><guid>https://blog.meshnook.com/posts/2026/10/macos-sudo-touchid/</guid><description>&lt;p&gt;macOS 原生支持通过 Touch ID 验证 sudo，无需安装第三方软件。&lt;/p&gt;&#10;&lt;p&gt;苹果提供的 /etc/pam.d/sudo_local 配置可以在系统更新后保留。在终端依次执行：&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo cp /etc/pam.d/sudo_local.template /etc/pam.d/sudo_local&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo sed -i &lt;span style="color:#e6db74"&gt;&amp;#39;&amp;#39;&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#39;s/^#auth/auth/&amp;#39;&lt;/span&gt; /etc/pam.d/sudo_local&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;首次配置仍需输入登录密码。然后测试：&lt;/p&gt;</description></item></channel></rss>