18
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Tips] MacのTouchIDでsudoコマンド認証を行う

Last updated at Posted at 2018-12-06

a. Terminalを開きます。

b. ルートユーザーに切り替えます

sudo su -

c. /etc/pam.d/sudoファイルに

auth       sufficient     pam_tid.so

を追加します。
こんな感じになるはずです。

auth       sufficient     pam_tid.so //追加
auth       required       pam_opendirectory.so
account    required       pam_permit.so
password   required       pam_deny.so
session    required       pam_permit.so

d. 保存したらterminalを再起動します。
e. sudoでコマンド実行するとtouchIDが使えるようになりました!

1__sudo___Users_matsumotokazuya__ghq_github_com_kazuooooo_calendy-webapp__sudo_.png

参考

18
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?