LoginSignup
1
0

More than 3 years have passed since last update.

`sudo xcode-select -s` の度にパスワードを打つのが面倒な人へ

Posted at

xcode-select の実行時のみ sudo のパスワード入力をスキップできるように visudo で1行付け加えるだけ

visudo
# root and users in group wheel can run anything on any machine as any user
root            ALL = (ALL) ALL
%admin          ALL = (ALL) ALL

{input-your-user-name}           ALL = NOPASSWD: /usr/bin/xcode-select # この1行を追加

注意

特にいじっていない初期状態のファイルであれば、
# User specificationというブロックがあるが、ここではなくその下の
# root and users ~のブロックの一番下に書くこと。
(# root and users ~直下の設定で上書きされるっぽい?)

参考

sudo のパスワードを入力なしで使うには
MacOSで「sudo」コマンドをパスワードなしにする方法

1
0
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
1
0