LoginSignup
0
0

More than 3 years have passed since last update.

sudoコマンドでパスワードを聞かれないようにする

Posted at

手順

  1. visudoコマンドで設定ファイル(/etc/sudoersファイル)を編集する。

    sudo visudo /etc/sudoers
    
  2. ユーザを指定する場合、次のように記述する。

    sshuser ALL=(ALL) NOPASSWD:ALL
    
  3. グループを指定する場合、次のように記述する。

    %wheel ALL=(ALL) NOPASSWD:ALL
    
  4. ファイルを保存し、visudoコマンドを終了する。

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