run cxs scan via non root

1 post Page 1 of 1
Junior Member
Posts: 17
Joined: 05 Nov 2011, 23:19


I would love to have the option to run cxs checks on uploaded files manually triggered by say PHP exec command for example
Code: Select all

#long list of code

/-- scan for code

$file = '/tmp/file.test';

exec('/usr/sbin/cxs ',escapeshellarg($file), $out, $status);

right now running this script would not work because of permissions.

cxs returns:
[user@server ~]: cxs
Permission denied
[user@server ~]:
1 post Page 1 of 1