Make user sudo
# Debian - add a user to the sudo group: su /sbin/usermod -aG sudo username Note, using su instead of sudo requires the full path to usermod since sbin is not in the path with this method, that is why it is there. # in Ubuntu: su adduser username sudo Note, a _full_ logout of the user must be done as /etc/sudoers seems to be edited upon login. It is not enough to make a new shell. # in Slackware (12): Edit /etc/sudoers, uncomment the following line: # Uncomment to allow people in group wheel to run all commands # %wheel ALL=(ALL) ALL So it looks like this: # Uncomment to allow people in group wheel to run all commands %wheel ALL=(ALL) ALL Save the file. Then add the user to the wheel group: gpasswd -a username wheel Note that usermod "-a" does not exist in Slackware 12.
This is a personal note. Last updated: 2019-08-19 01:35:30.