I wrote a small bash script that collects a crash report (some logs from
/var/log and a couple of files from
/etc) and the way I want this to work is through NGINX CGI.
Using a link, NGINX will trigger the script, collect all those files, and start a download once done.
My problem right now is with permissions. I can collect some parts of the files but not all of them (dmesg, syslog, etc.)