LoginSignup
0
0

More than 5 years have passed since last update.

/etc/sudoers.dのサンプル

Posted at

/etc/sudoers.dに配置するファイルのサンプル。


# Substitute Userの設定
# http://www.uetyi.com/server-const/entry-304.html#where

# GGGグループのユーザはsudo実行時にrootのパスワードを指定
Defaults:%GGG runaspw

# sample
#  user1,user2,%group1  host1,host2=(change_user1,:change_group)  command1,command2
#  user1,user2,%group1  host1,host2=(change_user1,:change_group)  NOPASSWD: command1,command2
%GGG ALL=(ALL) ALL
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