@Daniel-Fiore said in CentOS Linux 8 issue with sudo - Version bug?:
https://unix.stackexchange.com/questions/109944/why-is-the-sudo-password-different-than-the-su-root-password
Please check your 'sudo' permissions:
$ sudo -l
[ronnie@localhost ~]$ sudo -l
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for ronnie:
Sorry, user ronnie may not run sudo on localhost.
[ronnie@localhost ~]$
[ronnie@localhost ~]$ sudo useradd Bob
[sudo] password for ronnie:
ronnie is not in the sudoers file. This incident will be reported.
[ronnie@localhost ~]$
[ronnie@localhost ~]$ su
Password:
[root@localhost ronnie]# sudo useradd Betty
[root@localhost ronnie]#
[ronnie@localhost ~]$ sudo -l
<output omitted>
User root may run the following commands on localhost:
(ALL) ALL
Cordially,
Ronnie Wong
Edutainer Manager, ITProTV
*if the post above has answered the question, please mark as solved.
**All "answers" and responses are offered "as is" and my opinion. There is no implied service, support, or guarantee by ITProTV.