Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
edited by
I wanted to give sudo access to one of the users. What needs to be done on my terminal?

1 Answer

0 votes
by (36.8k points)

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

igor    ALL=(ALL) ALL

This line grants all the permissions to user igor.

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

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

To know about Linux join the Linux training

 

Related questions

0 votes
1 answer
asked Jan 21, 2021 in Linux by blackindya (18.4k points)
0 votes
1 answer
0 votes
1 answer
asked Dec 10, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer

Browse Categories

...