Search code examples
linuxsudo

How to give a Linux user sudo access?


I am trying to give sudo access to one of my users. What should I type in my terminal?


Solution

  • You need run visudo and in the editor that it opens write:

    igor    ALL=(ALL) ALL
    

    That line grants all permissions to user igor.

    If you want permit to run only some commands, you need to list them in the line:

    igor    ALL=(ALL) /bin/kill, /bin/ps