CentOSでsudoコマンドを使えるようにする
sudoユーザーに追加していないユーザーでsudoコマンドを実行すると、↓のような感じで怒られた。
特定のユーザーがsudoコマンドを実行できるようにしてみましょう。
wheel のグループに変更する。
usermod -G wheel naoki-s
これで、sudoコマンが使えるようになる。
ところで、wheel って?
cat コマンドで /etc/sudoers の中身を確認してみよう。
Author And Source
この問題について(CentOSでsudoコマンドを使えるようにする), 我々は、より多くの情報をここで見つけました https://qiita.com/leomaro7/items/b1d7d6e7a24b48d07793著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .