Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #211729 > unrolled thread

awstats problem

Started byGene Heskett <gheskett@shentel.net>
First post2019-07-25 17:50 +0200
Last post2019-07-26 21:10 +0200
Articles 8 — 5 participants

Back to article view | Back to linux.debian.user


Contents

  awstats problem Gene Heskett <gheskett@shentel.net> - 2019-07-25 17:50 +0200
    Re: awstats problem Greg Wooledge <wooledg@eeg.ccf.org> - 2019-07-25 18:00 +0200
      Re: awstats problem Peter Wiersig <peter@friesenpeter.de> - 2019-07-26 14:00 +0200
        Re: awstats problem Gene Heskett <gheskett@shentel.net> - 2019-07-26 17:50 +0200
          Re: awstats problem David Wright <deblis@lionunicorn.co.uk> - 2019-07-26 19:00 +0200
            Re: awstats problem Gene Heskett <gheskett@shentel.net> - 2019-07-26 20:40 +0200
          Re: awstats problem Andrei POPESCU <andreimpopescu@gmail.com> - 2019-07-26 20:50 +0200
            Re: awstats problem Gene Heskett <gheskett@shentel.net> - 2019-07-26 21:10 +0200

#211729 — awstats problem

FromGene Heskett <gheskett@shentel.net>
Date2019-07-25 17:50 +0200
Subjectawstats problem
Message-ID<ynOad-1ch-3@gated-at.bofh.it>
Greetings all
stretch based install from linuxcnc.org here, trying to get awstats to 
work, which worked great on wheezy.

www-data is present in /etc/passwd
This file is present in /etc/cron.d as awstats

MAILTO=root

*/10 * * * * www-data [ -x /usr/share/awstats/tools/update.sh ] 
&& /usr/share/awstats/tools/update.sh

# Generate static reports:
10 03 * * * www-data [ -x /usr/share/awstats/tools/buildstatic.sh ] 
&& /usr/share/awstats/tools/buildstatic.sh

But when I get root with sudo -i
and attempt an su www-data I get
root@coyote:~$ su www-data
This account is currently not available.

Whats the debian stretch legal way to fix this?

Thank you!


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [next] | [standalone]


#211730

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2019-07-25 18:00 +0200
Message-ID<ynOjT-1fw-3@gated-at.bofh.it>
In reply to#211729
On Thu, Jul 25, 2019 at 11:48:46AM -0400, Gene Heskett wrote:
> root@coyote:~$ su www-data
> This account is currently not available.

If you want a shell as a system account, use sudo instead.

sudo -s -u www-data

[toc] | [prev] | [next] | [standalone]


#211750

FromPeter Wiersig <peter@friesenpeter.de>
Date2019-07-26 14:00 +0200
Message-ID<yo73c-4n4-5@gated-at.bofh.it>
In reply to#211730
Greg Wooledge <wooledg@eeg.ccf.org> writes:
Thu, Jul 25, 2019 at 11:48:46AM -0400, Gene Heskett wrote:
>> root@coyote:~$ su www-data
>> This account is currently not available.
>
> If you want a shell as a system account, use sudo instead.
>
> sudo -s -u www-data

or set the shell using su:
su -s /bin/bash -u www-data

This behaviour is caused due to the shell in /etc/passwd:

$ getent passwd www-data
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin

Peter

[toc] | [prev] | [next] | [standalone]


#211766

FromGene Heskett <gheskett@shentel.net>
Date2019-07-26 17:50 +0200
Message-ID<yoaDL-6Gg-9@gated-at.bofh.it>
In reply to#211750
On Friday 26 July 2019 07:21:46 Peter Wiersig wrote:

> Greg Wooledge <wooledg@eeg.ccf.org> writes:
>
> Thu, Jul 25, 2019 at 11:48:46AM -0400, Gene Heskett wrote:
> >> root@coyote:~$ su www-data
> >> This account is currently not available.
> >
> > If you want a shell as a system account, use sudo instead.
> >
> > sudo -s -u www-data
>
> or set the shell using su:
> su -s /bin/bash -u www-data
>
> This behaviour is caused due to the shell in /etc/passwd:
>
> $ getent passwd www-data
> www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
>
> Peter
I changed the MailTo to gene so I could maybe see the error message, 
which was that the config hadn't a proper domain name so I 
edited /etc/awstats/awstats.conf to define the domain name that the 
world addresses me by, in the sig below. According to the log, its still 
running at 10 minute intervals, but its not emailing me any error 
messages now, but also in not  updateing anything in 
the /var/www/awstats directory.

And spamd is dumping 20 lines of debug crap to the syslog, causing it to 
be rotated out from under a tail on it so I can see whats going on, in 
less than a days time. So when something happens that should still be 
onscreen via the tail, the onscreen is out of date by 2 or 3 days.

So as a log, thats worthless, and its logging SHOULD be going to 
~/log/mail.log, so something has broken that, where to I find that. 
procmail is launching that for every incoming email, using this recipe:
SPAMBOX = "/home/gene/Mail/spam/new"
:O
* SPAM=| spamd --stfout -
$SPAMBOX

And I just found the awstats failure message is being sent to www-data. 
Put a tail on that puppy.

I'm going to need some headache powders. Now if folks would actually 
write a man page.  And to top that off, my coffee is cold...

Thanks all;

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#211774

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2019-07-26 19:00 +0200
Message-ID<yobJv-7kR-1@gated-at.bofh.it>
In reply to#211766
On Fri 26 Jul 2019 at 11:47:02 (-0400), Gene Heskett wrote:

> And spamd is dumping 20 lines of debug crap to the syslog, causing it to 
> be rotated out from under a tail on it so I can see whats going on, in 
> less than a days time. So when something happens that should still be 
> onscreen via the tail, the onscreen is out of date by 2 or 3 days.
> 
> So as a log, thats worthless,

I guess you wrote
https://lists.debian.org/debian-user/2019/06/msg00219.html
in your sleep.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#211780

FromGene Heskett <gheskett@shentel.net>
Date2019-07-26 20:40 +0200
Message-ID<yodih-OQ-3@gated-at.bofh.it>
In reply to#211774
On Friday 26 July 2019 12:55:22 David Wright wrote:

> On Fri 26 Jul 2019 at 11:47:02 (-0400), Gene Heskett wrote:
> > And spamd is dumping 20 lines of debug crap to the syslog, causing
> > it to be rotated out from under a tail on it so I can see whats
> > going on, in less than a days time. So when something happens that
> > should still be onscreen via the tail, the onscreen is out of date
> > by 2 or 3 days.
> >
> > So as a log, thats worthless,
>
> I guess you wrote
> https://lists.debian.org/debian-user/2019/06/msg00219.html
> in your sleep.
>
> Cheers,
> David.

No, I was awake, but after 84 years, the short term memory is gone.

But that still leaves why spamd is such a spammer itself, spamming the 
syslog until its  drowned out anything else that might be interesting. 
I'd guess, that at the level of incoming traffic, syslog is over 95% 
from spamd. If spamd was in trouble it might be interesting, but its 
working just fine so I could sure send it to dev / null and not miss a 
thing.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#211781

FromAndrei POPESCU <andreimpopescu@gmail.com>
Date2019-07-26 20:50 +0200
Message-ID<yodrY-SJ-11@gated-at.bofh.it>
In reply to#211766

[Multipart message — attachments visible in raw view] — view raw

On Vi, 26 iul 19, 11:47:02, Gene Heskett wrote:
> 
> So as a log, thats worthless, and its logging SHOULD be going to 
> ~/log/mail.log, so something has broken that, where to I find that. 
> procmail is launching that for every incoming email, using this recipe:
> SPAMBOX = "/home/gene/Mail/spam/new"
> :O
> * SPAM=| spamd --stfout -
> $SPAMBOX
 
I don't know much about spamd, but shouldn't that be '--stdout'?

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

[toc] | [prev] | [next] | [standalone]


#211783

FromGene Heskett <gheskett@shentel.net>
Date2019-07-26 21:10 +0200
Message-ID<yodLj-1fJ-5@gated-at.bofh.it>
In reply to#211781
On Friday 26 July 2019 14:42:14 Andrei POPESCU wrote:

> On Vi, 26 iul 19, 11:47:02, Gene Heskett wrote:
> > So as a log, thats worthless, and its logging SHOULD be going to
> > ~/log/mail.log, so something has broken that, where to I find that.
> > procmail is launching that for every incoming email, using this
> > recipe: SPAMBOX = "/home/gene/Mail/spam/new"
> >
> > :O
> >
> > * SPAM=| spamd --stfout -
> > $SPAMBOX
>
> I don't know much about spamd, but shouldn't that be '--stdout'?
>
Probably, but its been that way for yonks. I fixed it anyway.  So we 
shall see.  Thanks.

> Kind regards,
> Andrei


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web