Add User to Sudo Group




    usermod changes the user's administrative privileges. This command also grants the new user sudo access, which allows the new user to run commands with the sudo command without having to provide a password.

    usermod -aG sudo newuser
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.