66
rated 0 times
[
66]
[
0]
/ answers: 1 / hits: 169627
/ 2 Years ago, tue, december 7, 2021, 9:23:23
Below is what I know:
I have to add this below line in sudoers
file to give rights to the user for particular task.
user_name ALL=NOPASSWD: /usr/bin/apt-get install
In this case I want to give access to this user to restart 2 services (i.e. Apache
and MySQL
) with all install rights.
Using the above line, I have given him all install rights, now do I have to add same line two more times to give the rights for services? Or can I just add those commands in the same line, separated by comma or something?
More From » sudo