Originally Posted by
SeijiSensei
Must the command be issued by one of those users? Perhaps /usr/sbin/freeradius is only executable by root? The simplest fix in this case is to let other users run the command with "sudo chmod a+x /usr/sbin/freeradius". A more nuanced approach would create a group with executable rights on the file, then putting the www-data user into that group.
Code:
root@buee-ubuntu:/usr/sbin# chmod a+x freeradius
root@buee-ubuntu:/usr/sbin# ls -al freeradius
-rwxr-xr-x 1 root root 283912 2011-05-19 10:50 freeradius
root@buee-ubuntu:/usr/sbin# freeradius -C
root@buee-ubuntu:/usr/sbin# echo $?
0
root@buee-ubuntu:/usr/sbin# su - www-data
$ /usr/sbin/freeradius -C
$ echo $?
1
Bookmarks