sudoers
sudoersはユーザにどんなsudo権限があるかを決定する。
設定ファイル
# /etc/sudoers # /etc/sudoers.d/* # 誰が どのホストで=(誰として) 何をできる # rootユーザは、誰にでもなれて、なんでもできる root ALL=(ALL:ALL) ALL # wheelグループは、誰にでもなれて、パスワードなしでなんでもできる %wheel ALL=(ALL:ALL) NOPASSWD: ALL # app_userは、rootになれて、sbin/ifconfig を実行できる app_user ALL=(root) NOPASSWD:/sbin/ifconfig