Tag: usermod

  • Debian, Give User Sudo Access

    Here’s a quick tutorial on giving a user sudo access on Debian.

    I’m going to assume SSH access is set up, and you can log in to root, or you have terminal access on the host system.

    After you’re logged in as root, all we have to do is run a simple command.

    usermod -AG sudo username
    Bash

    usermod means we want to modify the users on the system.

    -AG, A stands for add, and G stands for group.

    In this case, we want to add a user to the sudo group.

    Then username is the user you want to add to the group.

    Replace username with the user that you want to give sudo access to.

    If nothing shows up for an error, and it goes back to the enter command line. Something like root@debian-dell:~# then you’re all set!

    Leave a comment if you need any help.

    I hope you have fun and a great day!