OpenSUSE 13: sudoでパスワード入力を不要にする


Table of Contents

1 /etc/sudoersでwheelグループを有効にする

visudoで/etc/sudoersを編集します。

$ sudo visudo

wheelグループは無効になっているので、有効にします。

diff -uprN /etc/sudoers{.org,}— /etc/sudoers.org 2016-11-18 20:59:50.045948489 +0900+++ /etc/sudoers 2016-11-18 21:00:26.525321111 +0900@@ -76,7 +76,7 @@ root ALL=(ALL) ALL # %wheel ALL=(ALL) ALL ## Same thing without a password-# %wheel ALL=(ALL) NOPASSWD: ALL+%wheel ALL=(ALL) NOPASSWD: ALL ## Read drop-in files from /etc/sudoers.d ## (the ‘#’ here does not indicate a comment)

2 ユーザをwheelグループに追加する

ユーザをwheelグループに追加します。

$ sudo gpasswd -a hiroom2 wheel

Android | Linux | SDL - Narrow Escape