Restart FreeRadius from PHP Script (Run command as another user)
Ok, so I've been trying to find a way to refresh the configuration files of FreeRadius from a PHP page that I've been working on. I can do this one of two ways:
However, the trouble I'm running in to is privileges. I know I have to do this from the sudoers file, but I can't seem to get it to work. The user for apache is www-data as default, the user for FreeRadius is freerad. My assumption is that I need to give www-data permissions to run one of those commands (preferably /usr/sbin/freeradius -C) as either root or freerad without prompting for a password. But HOW?!
I've edited the sudoers file a million different times. Anything that's bold is something I haven't changed:
|All times are GMT -5. The time now is 05:16 AM.|