Add user to root privilege in linux

-Centos 6


log as root user first:
#visudo
find allow root to run any command anywhere and add user the same root have.

## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
abc     ALL=(ALL)       ALL
save and exit

-Debian7:


log as root user first:

#apt-get install sudo
#vim /etc/sudoers
just uncomment on

%sudo   ALL=(ALL:ALL) ALL

save and exit.

then add user to group sudo is done.
#vim /ect/group
and add more user with(,) between other user

sudo:x:27:abc,cde