編集にはvisudoを使おう
[参考資料] https://qiita.com/RyodoTanaka/items/e9b15d579d17651650b7
手順 A
手順 B
https://www.suzu6.net/posts/144-centos-su-user/
CentOS
[参考資料]
https://qiita.com/Esfahan/items/a159753d156d23baf180
概念
[参考資料] https://www.atmarkit.co.jp/flinux/rensai/linuxtips/221rootcomuse.html
実際に行動
rootになります。
$ su -
sudo設定ファイルを編集するためのコマンドvisudo
$ visudo
# visudo ## The COMMANDS section may have other options added to it. ## ## Allow root to run any commands anywhere root ALL=(ALL) ALL [ユーザ名A] ALL=(ALL) ALL [ユーザ名B] ALL=(ALL) ALL