I have a hook in the http domain log parse and I followed the same example used in the doc
Guide to Standardized Hooks - Privilege Escalation - Software Development Kit - cPanel Documentation
Exact command used to register the hook:
/usr/local/cpanel/bin/manage_hooks add script /var/cpanel/myapp/do_extra.php --manual --category Stats --event RunUser --stage pre --exectype script --escalateprivs
[~]# cat /usr/local/cpanel/3rdparty/bin/reload_nginx.sh
#!/bin/bash
/usr/sbin/nginx -s reload
echo '1 nginX::reloaded'
But on running runweblogs I get the following error
info [cpanellogd] A script hook attempted to escalate privileges when escalation was not permitted in Stats::RunUser with the script /usr/local/cpanel/3rdparty/bin/reload_nginx.sh
What am I doing wrong?
Guide to Standardized Hooks - Privilege Escalation - Software Development Kit - cPanel Documentation
Exact command used to register the hook:
/usr/local/cpanel/bin/manage_hooks add script /var/cpanel/myapp/do_extra.php --manual --category Stats --event RunUser --stage pre --exectype script --escalateprivs
[~]# cat /usr/local/cpanel/3rdparty/bin/reload_nginx.sh
#!/bin/bash
/usr/sbin/nginx -s reload
echo '1 nginX::reloaded'
But on running runweblogs I get the following error
info [cpanellogd] A script hook attempted to escalate privileges when escalation was not permitted in Stats::RunUser with the script /usr/local/cpanel/3rdparty/bin/reload_nginx.sh
What am I doing wrong?