LoginSignup
1
0

More than 5 years have passed since last update.

スリープ解除/スクリーンセ―バ解除にパスワードを要求 の 開始後の時間を任意の値に変更する

Posted at

スリープ解除/スクリーンセ―バ解除にパスワードを要求 の項目を見ると開始時間が

  • すぐ
  • 5秒後
  • 1分後
  • 5分後
  • 15分後
  • 1時間
  • 4時間

とすごく大雑把です.

30秒ぐらいにしたい!と思ったので調べてみました.

見つけた情報
How can I manipulate several security settings from terminal? - Ask Different

やり方

現在の設定を確認

$ defaults read com.apple.screensaver
{
    askForPassword = 1;
    askForPasswordDelay = 60; // 現在の値
}

設定の上書き

パスワードを聞かれるまでの時間を秒で設定します.

$ defaults write com.apple.screensaver askForPasswordDelay 30 // 任意の値

反映されたか確認

$ defaults read com.apple.screensaver
{
    askForPassword = 1;
    askForPasswordDelay = 30; // 更新を確認
}
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