Make user sudo
# Debian - add a user to the sudo group: su /usr/sbin/usermod -aG sudo <username> Or: /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. Note: using adduser <username> sudo only seem to work on Debian, but it does not work anyway. # 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: 2021-01-08 23:30:33.