I want to build a php based site that (automate) some commands on my Ubuntu Server
first thing I did was going to the file (sudoers) and add the user www-data so I c
/etc/passwd is readable by anyone, so you should be able to execute your command without having any special rights (unless PHP prevents it?).