usermod -aG root user or usermod -aG sudo user # the in order to avoid password set edit permission to file: # /etc/sudoers and add to it in the last line: userALL=(ALL:ALL) NOPASSWD: ALL