Answer the question
In order to leave comments, you need to log in
How to allow execution of certain commands without entering a password?
Hello! Such a question: I have a sudo user, I need to allow him to execute commands sudo apache2ctl graceful
, sudo a2ensite xxx
and sudo a2dissite xxx
without entering the user's password. How to do it?
Answer the question
In order to leave comments, you need to log in
/etc/sudoers
Be sure to find out the exact paths to apache2ctl , a2ensite and a2dissite using the which command , depending on the distribution, it can be either in /bin or /usr/bin, or somewhere else altogether.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question