Edit sudoers file in Redhat/Fedora/CentOS
To allow certain users to act as root (su -, or sudo), you must add them to the sudoers file (/etc/sudoers).
The sudoers file must be edited using the visudo command. See the sudo webpage.
visudo -f /etc/sudoers
Edit the file to add the correct permissions. In this case, give members of the group “adm” permission to do just about everything.
%adm ALL=(ALL) NOPASSWD: ALL
Save the changes using “:wq”