-
Edit visudo file to grant user(centos/ubuntu) all permission by executing below command:
# visudo -
Add below lines after "root ALL=(ALL) ALL":
centos ALL=(ALL) ALL -
Save and exit file by below command:
:wq -
Add user to wheel group:
# usermod -aG wheel centos