Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to give a Linux user sudo access? [closed]

Tags:

linux

sudo

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

like image 315
Adam Boostani Avatar asked Jun 19 '12 05:06

Adam Boostani


People also ask

How do I give an account to sudo access?

On Ubuntu, the easiest way to grant sudo privileges to a user is by adding the user to the “sudo” group. Members of this group can execute any command as root via sudo and prompted to authenticate themselves with their password when using sudo . We're assuming that the user already exists.


1 Answers

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 
like image 62
Igor Chubin Avatar answered Nov 04 '22 00:11

Igor Chubin