Jean28518 / linux-assistant

A daily linux helper with powerful integrated search, routines checks and administrative tasks. The Project is built with flutter and python.
https://www.linux-assistant.org
GNU General Public License v3.0
91 stars 12 forks source link

Add user to sudo for debian #163

Closed Advantaged closed 7 months ago

Advantaged commented 11 months ago

here the code i found on the inet:

su -

cp /usr/sbin/usermod /usr/bin/usermod

/usr/bin/usermod -aG sudo tony   # or

/usr/sbin/usermod  -aG sudo tony   # test:

getent group sudo   # output:

sudo:x:27:tony