I have a bunch of PHP scripts are run by cron (
/etc/crontab) at specific times. The scripts are owned by www-data. However, www-data does not have shell access. In fact, it has "nologin" set as its shell.
I am unsure which user to run the script as. I don't think it's safe to run the script as root - that would give it too much access to things in case anything harmful might ever happen inside those scripts. But I also am not sure if it is safe to give the www-data user shell access.
Anyone that is better informed on the subject that could help me out here?