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.
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?