Free and adhesion of ubuntu sudo centos similar, are added in the user information / etc / sudoers, the added content is the same, but the position is not the same.
centos position as follows:
And ubuntu position as follows:
In addition, two lines exactly.
Note: the NOPASSWD: ALL the middle of a space -
Then you can change the average user so as not to close to the root.