** Changed in: awstats (Ubuntu Xenial) Assignee: (unassigned) => Andreas Hasenack (ahasenack)
** Changed in: awstats (Ubuntu Artful) Assignee: (unassigned) => Andreas Hasenack (ahasenack) ** Changed in: awstats (Ubuntu Xenial) Status: Triaged => In Progress ** Changed in: awstats (Ubuntu Artful) Status: Triaged => In Progress ** Changed in: awstats (Ubuntu) Assignee: (unassigned) => Andreas Hasenack (ahasenack) ** Changed in: awstats (Ubuntu) Status: Triaged => In Progress ** Description changed: + [Impact] + + * An explanation of the effects of the bug on users and + + * justification for backporting the fix to the stable release. + + * In addition, it is helpful, but not required, to include an + explanation of how the upload fixes this bug. + + [Test Case] + + * detailed instructions how to reproduce the bug + + * these should allow someone who is not familiar with the affected + package to reproduce the bug and verify that the updated package fixes + the problem. + + [Regression Potential] + + * discussion of how regressions are most likely to manifest as a result + of this change. + + * It is assumed that any SRU candidate patch is well-tested before + upload and has a low overall risk of regression, but it's important + to make the effort to think about what ''could'' happen in the + event of a regression. + + * This both shows the SRU team that the risks have been considered, + and provides guidance to testers in regression-testing the SRU. + + [Other Info] + + * Anything else you think is useful to include + * Anticipate questions from users, SRU, +1 maintenance, security teams and the Technical Board + * and address these questions in advance + + + === Original description === + This was found in Ubuntu 16.04. I have not tested other versions. The /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh script does not run by default, because the 'www-data' user does not have a valid shell by default. root@www:~# bash -x /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh + UPDATE_SCRIPT=/usr/share/awstats/tools/update.sh + '[' -x /usr/share/awstats/tools/update.sh ']' + su -l -c /usr/share/awstats/tools/update.sh www-data This account is currently not available. We could give www-data a valid shell but my preferred fix is to edit /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh and explicitly specify the shell with '-s /bin/bash': - diff -u ~/prerotate.sh /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh --- /root/prerotate.sh 2017-07-31 17:07:43.749559681 -0500 +++ /etc/logrotate.d/httpd-prerotate/awstats/prerotate.sh 2017-07-31 17:07:54.122034426 -0500 @@ -2,5 +2,5 @@ - UPDATE_SCRIPT=/usr/share/awstats/tools/update.sh - if [ -x $UPDATE_SCRIPT ] - then + UPDATE_SCRIPT=/usr/share/awstats/tools/update.sh + if [ -x $UPDATE_SCRIPT ] + then - su -l -c $UPDATE_SCRIPT www-data + su -l -c $UPDATE_SCRIPT -s /bin/bash www-data - fi + fi -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1708665 Title: prerotate.sh fails due to no shell for www-data user To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1708665/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs