run cxs scan via non root

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


Hello

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
<?php

#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
1
Permission denied
[user@server ~]:
1 post Page 1 of 1