🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: mixmaster cron error

#266860
From: Zax
Date: Thu, 24 Apr 2014 17:08
64 lines
3925 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, 24 Apr 2014 16:58:42 +0200 (CEST), Nomen Nescio wrote in
Message-Id: <0ace27f38ca097bbf387204f85e44bf0@dizum.com>:

>> When new stats are downloaded they come in with the .t extension and
>> are renamed to drop the .t extension, thus overwriting and replacing
>> the old versions of the files.
>
>> I believe it is done this way to protect your current files from being
>> overwritten with corrupted or even empty files should the source of
>> the replacement files be pushing out garbage for some reason. The
>> 'quality' of the .t files are likely checked in some way to be sure
>> they are valid replacements and not empty files for example, before
>> being used to replace the current files.
>
>> I have a feeling that your setup might have a generic permissions
>> problem where the software was installed as one user, and being run as
>> a different user. This includes cron jobs, which can be run as
>> different users, which may not have the appropriate permissions to
>> write to file areas that belong to other users.
>
>   *RE-WRITE of previous post:*
>
>   I remember now - I built the stats update cron in root.
This is why you're experiencing problems.  The root user has permission
to overwrite the files (it has access to everything).  Once its
overwritten them, they are then owned by root.

First, reissue the command I gave you yesterday to change the ownership
of /var/lib/mixmaster back to the mixmaster user.

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

This changes ownership of this folder and everything that resides in it,
including other folders and their content (-R means recursive).

Next, change your cron job to run as the mixmaster user instead of root.
This way, everything generated by the cron job will be owned by the
mixmaster user.

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

iQIcBAEBCAAGBQJTWUT1AAoJEIBmv8lxNqHoIvIQALf/P6sIx1o3RK0u9wKhKQtw
XDQPJNWnu5w/XXmlDhIJrLwLr63aOfM1FK1lgGC7im9JF846oOHNjWbz+yp6M0JV
KmyTa3O5lV5qk5M/Os8TEKbd/pi/Nb0/vPxcP78CeSomyyqMZzbRpp0KHFrgh0hB
4CSlFikgcvDsV5wtM2Gn5bekcbt30VqWysE73eSPBhhWYtKG5dBYGVXq09m95vX8
OREhn1mVDfWNNM6JNO0+JljhwdbirnoC1I8l7v96K65fKyLP4uZPC84VwBmZdKvL
7vtNqvZUnF3NNnPE7G7Gh/t/XM91ED2RKkQgUNDvyNQrL1OTwt7s8D7wKYayf1vf
x6wgCQFHVfkT57idVfgLKsxIW+wtCUnw2nzpuAWYnfWXDZ6narwZr7dAgGlnclna
SQL9GPErmHrGUICNHBOdWbodDgko4fhonqfFm53SLOF1awG8xUcq1YBM++1dKBom
8+Vs7b6PCBU1Rahx/UKmrikqCwX1+BMId8j4v1c2FpgtXTWy1+x1b3a+FHSLPogm
pvIQ1vu9veCehmlGudFeBfwyoYZkK5IdD9D9YC7B1rU3bQjsGX3lNu1Z6MSzUfQg
k6Uh2b96/u3Ukrai2Ciq8SidCMJi9dTKdtmmAPVUQgKltgl3CTXQfdcmwBUv4EDm
89U9KgcO1mAec1jsvGqf
=7CHu
-----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: <slrnllih7l.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!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!rt.uk.eu.org!news.mixmin.net!.POSTED.2a01:4f8:100:5243::4!not-for-mail
References: <0u5il99bopiu9l3rd1u021rmu5m05bpnig@news.stray.cat.edu> <0ace27f38ca097bbf387204f85e44bf0@dizum.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnllih7l.k47.admin@snorky.mixmin.net>
Subject: Re: mixmaster cron error
Date: Thu, 24 Apr 2014 17:08:05 +0000
From: Zax <admin@mixmin.net>
References: <0u5il99bopiu9l3rd1u021rmu5m05bpnig@news.stray.cat.edu> <0ace27f38ca097bbf387204f85e44bf0@dizum.com>
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!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed1.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: Thu, 24 Apr 2014 17:08:05 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="2a01:4f8:100:5243::4";
 logging-data="17280"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.2-12 (Linux)
Lines: 63