How to give a Linux user sudo access?

linux, sudo

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

Problem

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

Original source