lebinh/ngxtop

Run as an unpriviledged user on Debian

Opened this issue · 0 comments

Their were two quirks I noticed, when trying this on Debian Wheezy as a non-root user with read access to the system logfiles.

nginx is located in /usr/sbin/, which usually is not in $PATH, so it won't find the binary.

The log location could somehow not be determined, I haven't dug through the code much. Had it fall back to '/var/log/nginx/access.log' instead of 'log/access.log'. It detected the nginx.conf, however it wasn't able to extract the access_log path.

% grep "access" /etc/nginx/nginx.conf
access_log /var/log/nginx/access.log;