Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

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

  • すぐ
  • 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; // 更新を確認
}
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away