- type
sudo adduser <username> sudo
where username is the name of the user you want to add in the sudoers list - For checking if your required user is added succesfully type
getent group sudo
which will show the list of sudo users
上面的报告说明, postgres这个用户没在 sudoers 的列表中, 所以这个“事件”会被报告。