Perhaps a valid fix is to change the su line to: su -s /bin/sh -l -c /usr/share/awstats/tools/update.sh www-data
This would allow the shell to stay as /usr/sbin/nologin, but specifically override that just for the logrotate job.
Perhaps a valid fix is to change the su line to: awstats/ tools/update. sh www-data
su -s /bin/sh -l -c /usr/share/
This would allow the shell to stay as /usr/sbin/nologin, but specifically override that just for the logrotate job.