I wrote a shell script (this one) to init a new website project. It have to be executed by a user (it isn’t a mater if he got root privileges because this user is me).
As you see, the user have to be able to:
- Add new files to
- Create a new directory (with ln) in
service apache2 reloadcommand;
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 user’s group or both and how can I do this?