I followed this question in order to enable sudo
command for my created user. So I added it into the wheels
group and edited the /etc/sudoers
file accordingly.
But what I don't get about this is when I type for instance sudo yum install
, it requires password of that user, not the password of root
. This seems really insecure because if the account gets compromised, you can access root
's functions with that users password.
Shouldn't it work in the way that if you want root
rights, than you need to know root
's password?