Archive

Posts Tagged ‘php’

Sudo command from php

March 4th, 2009 No comments

I wanted to have an easy button in a webpage to restart some process that requires sudo rights. After quite some Google searches I combined a few techniques that made this work.

Although this method only grants very limited rights to the webserver, granting superrights to a web process might open up some security issues somehow. However family or co-workers simply pressing the on/off button on the server when something is not working and I’m not around is a worse problem in my opionion. Read more…

Categories: linux Tags: