I'm not sure it bears directly on your issue, but be aware that most distros, other than Ubuntu and its derivatives, do not share Ubuntu's sudo fetish; the sudoers file is not configured out of the box. CentOS is one of "most distros."
Most distros expect you to use su
; if you absolutely must use sudo, you must configure sudoers accordingly
using the visudo command.