add new user tom
useradd -m -p 12345 -s /bin/bash -G wheel tom
switch user from root to tom
and tom cannot use sudo, even I type right password.
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.
/etc/sudoers %wheel (ALL)=(ALL) ALL /etc/pam.s/su uncommented auth required pam_wheel.so $ groups tom wheel