run cxs scan via non root

Post Reply
wowkise
Junior Member
Posts: 17
Joined: 05 Nov 2011, 23:19

run cxs scan via non root

Post by wowkise »

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 ~]:

Post Reply