I wrote a shell script (this one) to init a new website project. It have to be executed by a user (it isnt a mater if he got root privileges because this user is me).As you see, the user have to be able to:edit /etc/hosts;Add new files to /etc/apache2/sites-available/;Create a new directory (with ln) in /var/www/;Execute a2ensite command;Execute service  apache2 reload command;All this actions need to be executed as root. But is it possible to give rights to do this to a regular user?And for this, have I to change owner of this files or the users group or both and how can I do this?
Best way to give a user some root privileges in particular apach files and command
webserver;privileges;hosts;apache virtualhost