Centos 7 : user is not allowed to run sudo on localhost. This incident will be reported
when i’m trying to use : sudo rpm -Uvh, it showing “user is not allowed to run sudo on localhost. This incident will be reported”.
So in this video, will help you how to fixing the problem.
centos 7
Great job. Using Centos 9 stream, but this is still relevant. Thank you Ambar.
you should you visudo command instead of editing /etc/sudoers directly .