0
1

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 1 year has passed since last update.

#Mac のターミナルで su sudo コマンドなどで要求されるrootパスワードの記憶時間=タイムアウト時間を設定する

Last updated at Posted at 2019-11-02

手順

sudo visudo
+ Defaults    timestamp_timeout=-1

image

vim の操作

  • a または i でインサートモードに切り替える
  • 行を追加したら Esc Keyを押す
  • :x と入力して Enter を押すと保存される

NOTE

  • iTerm2だとタブを起動するたびに、パスワード記憶状態は解除される様子。あくまで1セッション単位でのお管理なのだろうか。
  • mac keep password su sudo remember などとGoogle検索してもなかなかヒットしない。
  • Mac su sudo パスワード 記憶 秒数 などとGoogle検索してもなかなかヒットしない。

参考

How to Change Sudo Password Timeout in Mac OS X

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?