CentOS7に「mastodon is not in the sudoers file. This incident will be reported.」の解決方法

1.エラー現象
[mastodon@xxxx ~]$ sudo su
[sudo] password for mastodon:
mastodon is not in the sudoers file. This incident will be reported.

2.解決方法
[root@xxx ~]# vim /etc/sudoers
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
%mastodon ALL=(ALL) ALL //追加内容

Linux

Posted by arkgame