🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #266834

Re: mixmaster cron error

#266834
From: Zax
Date: Wed, 23 Apr 2014 17:13
78 lines
4022 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wed, 23 Apr 2014 14:58:27 +0200 (CEST), Dave U  Random wrote in
Message-Id: <b8af393948cd7c0d21bf8dfc9072d15d@anonymitaet-im-inter.net>:

> I received this mail this morning:
>
> From: Anacron <root@inwtx.net>
> To: root@inwtx.net
> Subject: Anacron job 'cron.daily' on inwtx.net
>  ...
> Status: RO
>
> /etc/cron.daily/mixmaster:
> /usr/bin/mixmaster-update: Cannot write to 
> /var/lib/mixmaster/stats/pubring.mix: Permission denied (do you 
> want --destination or run as a different user?)
> /usr/bin/mixmaster-update: Cannot write to 
> /var/lib/mixmaster/stats/mlist.txt: Permission denied (do you want -
> -destination or run as a different user?)
> /usr/bin/mixmaster-update: Cannot write to 
> /var/lib/mixmaster/stats/rlist.txt: Permission denied (do you want -
> -destination or run as a different user?)
> /usr/bin/mixmaster-update: Cannot write to 
> /var/lib/mixmaster/stats/pubring.asc: Permission denied (do you 
> want --destination or run as a different user?)
>
>   It looks like mixmaster set up its own cron job to update the 
> stats, but for some reason it is not working.  Anyone know what is 
> going on here?  How do I need to set the file permsssions if that 
> is the problem?
>
> This is the cron job:
>
> /etc/cron.daily/mixmaster
>
> #!/bin/sh
> # Mixmaster update cron job. To be run daily.
>
> # Get configuration
>  . /etc/mixmaster/network.conf
>
> if [ "$NETWORK" = "permanent" ] && [ -x /usr/bin/mixmaster-update 
> ]; then
>    su mixmaster -c "/usr/bin/mixmaster-update"
> fi

The cronjob runs as user mixmaster but I suspect somebody (probably
root) has been used to update the stats.  The files will now be owned by
root and nobody else has permission to overwrite them.

To change this, issue the following command (as root):

chown -R mixmaster:mixmaster /var/lib/mixmaster

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJTV/TKAAoJEIBmv8lxNqHoQjAQALCON9N5RBRODQ8QAoypuGLb
hAXQwo70MnBf2h3jeIxV5YcWKpB2Yy62GCOEylW4v6x6H4bYU0/eyTSFANhoTLKy
9ARqCG/VMJ+4Viq9usNKnV5LAbppx8EZbx3rFkKtck0SaqOwvK4e8f2a0ykLCq5W
57AN6Y9pSwUkRzJI2uxO0U/nc4/5LIXBrTOdWJul4m+QZQcu2fM+cdLn0NZLeyhi
bNyuvrp5ZNkR+a6KlKdHlCa9czC1PC6F5MT4nzXel2XmNeb/TINXCWS54gojf3PY
Pl+D+BvqvZ/AmSnBzvBDID4bYDkbtMqs06ka+NSVgErWJ4RSDVp/JlVf3MGIABYk
R47nDFD+9Wv/RZBVuKEKES+Xhu4b/LC1pD1L+gqtqLW2nzEDAz+5hByVvFcnEfdm
Z8su6mpl+1uSz6e3oq/jLbds3yCIrhubyBvBZBQ+nzD5oAl1pMPXEErtMexrfQXq
TfEOdAfoHLMrgn4RxFpZCaM9tjlRszyGCGX+Ni9oWh2G6fhhIoI5y0vJPv0orU/t
QklOhSU7jJHNpBKKVb4Wq487JY16kEElNkF1hNSKVby3nmv+jMjRuVP0k/Drjct/
dQxNkATL3aR5/wMwyEJwb8g4i78kkXXqqyZf/x4V/+Kl3+F5C+bTPHCC1jtvw9CC
lIQuhZBDAzAm3V7GGp78
=mYlz
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub   4096R/4ABF07E3 2012-02-11 [expires: 2013-02-10]
Technical Details
Message-ID: <slrnllft6a.k47.admin@snorky.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!rt.uk.eu.org!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <b8af393948cd7c0d21bf8dfc9072d15d@anonymitaet-im-inter.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnllft6a.k47.admin@snorky.mixmin.net>
Subject: Re: mixmaster cron error
Date: Wed, 23 Apr 2014 17:13:46 +0000
From: Zax <admin@mixmin.net>
References: <b8af393948cd7c0d21bf8dfc9072d15d@anonymitaet-im-inter.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!rt.uk.eu.org!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Wed, 23 Apr 2014 17:13:46 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="10598"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.2-12 (Linux)
Lines: 77
X-Original-Bytes: 3764