🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
25 messages
25 total messages Started by Dave U. Random Wed, 23 Apr 2014 12:58
mixmaster cron error
#266832
Author: Dave U. Random
Date: Wed, 23 Apr 2014 12:58
42 lines
2208 bytes
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
Re: mixmaster cron error
#266834
Author: 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]
Re: mixmaster cron error
#266835
Author: Richard Starkey
Date: Wed, 23 Apr 2014 20:24
61 lines
2832 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

> 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

  Thank you very much.  You pegged the problem exactly.  I did a 
manual
sudo mixmaster --update-pinger-list && sudo mixmaster --update-
stats=mixmin

Re: mixmaster cron error
#266848
Author: Anonymous Remailer (austria)
Date: Thu, 24 Apr 2014 13:09
59 lines
3086 bytes
> 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

> su mixmaster -c "/usr/bin/mixmaster-update"
> fi

  Why am I getting this error now?  The stats are updating ok, but 
what the ..txt.t is, I don't know.  Files are no on my system.

Info: All Pingers File Downloaded OK.
/var/lib/mixmaster/used-stats/mlist.txt.t: Permission denied
/var/lib/mixmaster/used-stats/rlist.txt.t: Permission denied
/var/lib/mixmaster/used-stats/pubring.mix.t: Permission denied
/var/lib/mixmaster/used-stats/pubring.asc.t: Permission denied
http://pinger.mixmin.net/
downloading /var/lib/mixmaster/used-stats/mlist.txt from 
http://pinger.mixmin.net/mlist.txt...done
downloading /var/lib/mixmaster/used-stats/rlist.txt from 
http://pinger.mixmin.net/rlist.txt...done
downloading /var/lib/mixmaster/used-stats/pubring.mix from 
http://pinger.mixmin.net/pubring.mix...done
downloading /var/lib/mixmaster/used-stats/pubring.asc from 
http://pinger.mixmin.net/pgp-all.asc...done
Re: mixmaster cron error
#266850
Author: Anonymous
Date: Thu, 24 Apr 2014 14:05
17 lines
2120 bytes
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: mixmaster cron error
#266852
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 14:58
31 lines
2257 bytes
> 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.

  Do you know any way to give/transfer the ...txt.t file 
permissions to my mix user?
I had a similar problem with the .txt files and Zax gave me this to 
remedy it:

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

  I would think that the same type of command would fix this, but I 
don't know where the .t files are initially loaded.
Re: mixmaster cron error
#266855
Author: Anonymous
Date: Thu, 24 Apr 2014 15:29
18 lines
1743 bytes
On Thu, 24 Apr 2014 16:58:42 +0200 (CEST), Nomen Nescio
<nobody@dizum.com> wrote:

>chown -R mixmaster:mixmaster /var/lib/mixmaster
>
>  I would think that the same type of command would fix this, but I 
>don't know where the .t files are initially loaded.


The path to the .t files was given with the error statement, no?

/var/lib/mixmaster/used-stats/

So try:

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

Re: mixmaster cron error
#266856
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 15:51
23 lines
1458 bytes
> On Thu, 24 Apr 2014 16:58:42 +0200 (CEST), Nomen Nescio
> <nobody@dizum.com> wrote:


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

> I would think that the same type of command would fix this, but I
> don't know where the .t files are initially loaded.


> The path to the .t files was given with the error statement, no?

> /var/lib/mixmaster/used-stats/

> So try:

> chown -R mixmaster:mixmaster /var/lib/mixmaster/used-stats/

  A shameful oversight on my part.  But I was also thinking the 
'chown -R mixmaster:mixmaster /var/lib/mixmaster' would cover sub 
folders.

Re: mixmaster cron error
#266857
Author: Anonymous
Date: Thu, 24 Apr 2014 16:15
22 lines
2063 bytes
On Thu, 24 Apr 2014 17:51:38 +0200 (CEST), Nomen Nescio
<nobody@dizum.com> wrote:

>A shameful oversight on my part.  But I was also thinking the 
>'chown -R mixmaster:mixmaster /var/lib/mixmaster' would cover sub 
>folders.


The -R option in the command means recursive. This makes the command
effective at the last folder in the path and all the folders upward -
but not downward.

What you are doing may have unintended consequences as everything in
/var, /var/lib, /var/lib/mixmaster and /var/lib/mixmaster/used-stats/
will be owned by the mixmaster user and mixmaster group. Other users
may need to operate in that folder tree and if they are not a member
of the mixmaster group, they are going to have failed processes if the
permissions (not ownership) are not set to properly allow what they
want to do.


Re: mixmaster cron error
#266858
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 16:44
29 lines
2242 bytes
> 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.

  I completely purged and rebuilt the server, so I don't know where 
I could have messed up here.

  Do you know any way to give/transfer the ...txt.t file 
permissions to my mix user?
I had a similar problem and Zax gave me this to remedy it:

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

  I would think that the same type of command would fix this, but I 
don't know where the .t files are initially loaded.
Re: mixmaster cron error
#266859
Author: anonymous
Date: Thu, 24 Apr 2014 16:48
31 lines
2402 bytes
Nomen Nescio used his keyboard to write :
>> 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.
>
>   I completely purged and rebuilt the server, so I don't know where 
> I could have messed up here.
>
>   Do you know any way to give/transfer the ...txt.t file 
> permissions to my mix user?
> I had a similar problem and Zax gave me this to remedy it:
>
> chown -R mixmaster:mixmaster /var/lib/mixmaster
>
>   I would think that the same type of command would fix this, but I 
> don't know where the .t files are initially loaded.

  Disregard - I put in a repeat of this message above.
Re: mixmaster cron error
#266860
Author: 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]
Re: mixmaster cron error
#266861
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 17:15
49 lines
3028 bytes
> 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.

  I have already removed the cron job in root and set it up in the 
mix user.

  This brings up a question.  You are suggesting
chown -R mixmaster:mixmaster/var/lib/mixmaster

My mixmaster is set up in user 'mix'.  Should this actually be:
chown -R mix:mix /var/lib/mixmaster

Here is a 'ls -i' from user mix:
mix@inwtx:~$ ls -l
total 4
-rw------- 1 mix mix 372 Apr 22 15:51 dead.letter
Re: mixmaster cron error
#266862
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 17:59
30 lines
2121 bytes
> On Thu, 24 Apr 2014 17:51:38 +0200 (CEST), Nomen Nescio
> <nobody@dizum.com> wrote:


> A shameful oversight on my part.  But I was also thinking the
> 'chown -R mixmaster:mixmaster /var/lib/mixmaster' would cover sub
> folders.


> The -R option in the command means recursive. This makes the command
> effective at the last folder in the path and all the folders upward -
> but not downward.

> What you are doing may have unintended consequences as everything in
> /var, /var/lib, /var/lib/mixmaster and /var/lib/mixmaster/used-stats/
> will be owned by the mixmaster user and mixmaster group. Other users
> may need to operate in that folder tree and if they are not a member
> of the mixmaster group, they are going to have failed processes if the
> permissions (not ownership) are not set to properly allow what they
> want to do.

  I don't think that it will be a problem here because I am not 
running much more that mixmaster on the server.  However, this does 
bring up a question.  Is there a way to chown for the mixmaster 
folder only within the /var/lib/?  That is possibly what needs to 
be done here.

  Learning Linux is great fun for a software engineer geek like 
myself, but boy, can you get into trouble easily.
Re: mixmaster cron error
#266864
Author: Zax
Date: Thu, 24 Apr 2014 18:05
19 lines
1751 bytes
On Thu, 24 Apr 2014 19:15:27 +0200 (CEST), Nomen Nescio wrote in
Message-Id: <1d4bd4359779bb5ff53efbcb2cf7915a@dizum.com>:

>   I have already removed the cron job in root and set it up in the 
> mix user.
OK, no problem there then.  :)

>   This brings up a question.  You are suggesting
> chown -R mixmaster:mixmaster/var/lib/mixmaster
>
> My mixmaster is set up in user 'mix'.  Should this actually be:
> chown -R mix:mix /var/lib/mixmaster
Yes, I thought your user was mixmaster but mix is fine.
Is /var/lib/mixmaster the homedir for your mix user?

-- 
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]
Re: mixmaster cron error
#266863
Author: anonymous
Date: Thu, 24 Apr 2014 18:15
19 lines
2035 bytes
Zax formulated the question :
> On Thu, 24 Apr 2014 19:15:27 +0200 (CEST), Nomen Nescio wrote in
> Message-Id: <1d4bd4359779bb5ff53efbcb2cf7915a@dizum.com>:
>
>>   I have already removed the cron job in root and set it up in the 
>> mix user.
> OK, no problem there then.  :)
>
>>   This brings up a question.  You are suggesting
>> chown -R mixmaster:mixmaster/var/lib/mixmaster
>> 
>> My mixmaster is set up in user 'mix'.  Should this actually be:
>> chown -R mix:mix /var/lib/mixmaster
> Yes, I thought your user was mixmaster but mix is fine.
> Is /var/lib/mixmaster the homedir for your mix user?

  I don't know.  Any way to check that?  The stats are obviously going 
there.  My need to correct such a problem before advertising the new 
remailer.
Re: mixmaster cron error
#266865
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 18:20
62 lines
3248 bytes
> 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.

> I have already removed the cron job in root and set it up in the
> mix user.

> This brings up a question.  You are suggesting
> chown -R mixmaster:mixmaster/var/lib/mixmaster

> My mixmaster is set up in user 'mix'.  Should this actually be:
> chown -R mix:mix /var/lib/mixmaster

> Here is a 'ls -i' from user mix:
> mix@inwtx:~$ ls -l
> total 4
> -rw------- 1 mix mix 372 Apr 22 15:51 dead.letter

  To answer my own problem, I did this:
chown -R mix:mixmaster /var/lib/mixmaster

and then updated the mixmaster stats.  No error message received, 
so all is good (I think :~ ).
Re: mixmaster cron error
#266866
Author: anonymous
Date: Thu, 24 Apr 2014 18:57
21 lines
1963 bytes
Zax explained on 4/24/14 :
> On Thu, 24 Apr 2014 19:15:27 +0200 (CEST), Nomen Nescio wrote in
> Message-Id: <1d4bd4359779bb5ff53efbcb2cf7915a@dizum.com>:
>
>>   I have already removed the cron job in root and set it up in the 
>> mix user.
> OK, no problem there then.  :)
>
>>   This brings up a question.  You are suggesting
>> chown -R mixmaster:mixmaster/var/lib/mixmaster
>> 
>> My mixmaster is set up in user 'mix'.  Should this actually be:
>> chown -R mix:mix /var/lib/mixmaster
> Yes, I thought your user was mixmaster but mix is fine.
> Is /var/lib/mixmaster the homedir for your mix user?

root@inwtx:/# ~mix
-bash: /home/mix: Is a directory

  So, do I need to start over and 'adduser mixmaster' and install 
mixmaster from it?
Re: mixmaster cron error
#266867
Author: Zax
Date: Thu, 24 Apr 2014 19:11
25 lines
2247 bytes
On Thu, 24 Apr 2014 13:15:56 -0500, anonymous wrote in
Message-Id: <ljbkct$qu7$1@news.mixmin.net>:

>   I don't know.  Any way to check that?  The stats are obviously going 
> there.  My need to correct such a problem before advertising the new 
> remailer.

There are a few ways to check it.

The tilde (~) signifies your homedir so you can do:
echo ~
or
cd ~

The first will tell you your homedir, the second will take you to it.

You can also do:
grep mix /etc/passwd
This will tell you  details about any user with mix as a
component of its name.

-- 
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]
Re: mixmaster cron error
#266868
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 19:30
37 lines
1832 bytes
> On Thu, 24 Apr 2014 13:15:56 -0500, anonymous wrote in
> Message-Id: <ljbkct$qu7$1@news.mixmin.net>:


> I don't know.  Any way to check that?  The stats are obviously going
> there.  My need to correct such a problem before advertising the new
> remailer.

> There are a few ways to check it.

> The tilde (~) signifies your homedir so you can do:
> echo ~
> or
> cd ~

> The first will tell you your homedir, the second will take you to it.

> You can also do:
> grep mix /etc/passwd
> This will tell you  details about any user with mix as a
> component of its name.

  Thanks.  My server says it doesn't have grep.
I did this:

root@inwtx:~# cat /etc/passwd

Got this in the list:

mix:x:1000:1000:,,,,mixmaster:/home/mix:/bin/bash
mixmaster:x:106:113:Anonymous 
Remailer,,,:/var/lib/mixmaster:/bin/bash

  So I guess the answer is no?  What implementation does that have? 
 Do I need to reinstall mixmaster after doing a 'adduser mixmaster'?

Re: mixmaster cron error
#266869
Author: Zax
Date: Thu, 24 Apr 2014 20:20
25 lines
1992 bytes
On Thu, 24 Apr 2014 21:30:01 +0200 (CEST), Nomen Nescio wrote in
Message-Id: <1ff9927e60a0404a320bd4b345bba034@dizum.com>:

> Got this in the list:
>
> mix:x:1000:1000:,,,,mixmaster:/home/mix:/bin/bash
> mixmaster:x:106:113:Anonymous 
> Remailer,,,:/var/lib/mixmaster:/bin/bash
>
>   So I guess the answer is no?  What implementation does that have? 
>  Do I need to reinstall mixmaster after doing a 'adduser mixmaster'?

Gosh, that's complicated!  :)

Have you created all these users manually or have you installed a
packaged version of Mixmaster that made some of them for you?

The user 'mix' is clearly manually created and I'd suggest you stick
with that one.  Depending on the origins of the other two, you might
want to manually delete them or purge the packages that created them.

-- 
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]
Re: mixmaster cron error
#266871
Author: Anonymous Remailer (austria)
Date: Thu, 24 Apr 2014 21:07
30 lines
2039 bytes
> Got this in the list:

> mix:x:1000:1000:,,,,mixmaster:/home/mix:/bin/bash
> mixmaster:x:106:113:Anonymous
> Remailer,,,:/var/lib/mixmaster:/bin/bash

> So I guess the answer is no?  What implementation does that have?
> Do I need to reinstall mixmaster after doing a 'adduser mixmaster'?

> Gosh, that's complicated!

> Have you created all these users manually or have you installed a
> packaged version of Mixmaster that made some of them for you?

> The user 'mix' is clearly manually created and I'd suggest you stick
> with that one.  Depending on the origins of the other two, you might
> want to manually delete them or purge the packages that created them.

  I think that I am going clear the server and start over.  It 
seems from what you and some others are saying is that an 'adduser 
mixmaster' is created and the 'apt-get install mixmaster' is 
usually done when logged into user mixmaster.  I am trying to keep 
maticulous notes on everything I do, which I may publish on some 
site if I can get mixmaster installed ok.  I will wait and see if 
you have any other comments before preceeding.

  Appreciate your, StrayCat's and help from others I have received 
here.
Re: mixmaster cron error
#266870
Author: Zax
Date: Thu, 24 Apr 2014 21:17
51 lines
3425 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, 24 Apr 2014 23:07:23 +0200 (CEST), Anonymous Remailer (austria) wrote in
Message-Id: <5e80748d39cfed29efac0ca1ed4a9611@remailer.privacy.at>:

>   I think that I am going clear the server and start over.  It 
> seems from what you and some others are saying is that an 'adduser 
> mixmaster' is created and the 'apt-get install mixmaster' is 
> usually done when logged into user mixmaster.  I am trying to keep 
> maticulous notes on everything I do, which I may publish on some 
> site if I can get mixmaster installed ok.  I will wait and see if 
> you have any other comments before preceeding.

If you run 'apt-get install mixmaster', you're installing the packaged
version and you don't need to manually create any users.  This is the
easiest installation but limits you to running an older version of
Mixmaster (the latest to have been packaged).  Personally I prefer to
compile Mixmaster from source but others may argue in favour of the
packaged solution.

If you install from source, it's still quite simple but you need to have
all the tools installed for compiling software.  This is usually a
matter of trial and error: Running the Mixmaster install and reacting to
what it fails on.

>   Appreciate your, StrayCat's and help from others I have received 
> here.
You're welcome.  :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJTWX9WAAoJEIBmv8lxNqHod1cP/1oxvEFuUM2XGUCop7WgR8Hr
g/dhhFJbvw2OOdqfY+ClgNI6bwUUJfiIhrOIvAr/e7Pe7RHFAF4i/4yOeZJhr3cw
Ay4ZotqDlL5pq/XU2BqVxTEY+lsX9TLDyLO/oCrauzICQiUwP+TF6tch6pXOfdhU
VJzBWofrSFZyeSwi9vHhuBURBleagXXZDv+lEuzjRwOf0AkPCPZDJe5ZEy6V+n/r
GyQLjzKEbGlV8R/gg6PaVtmfQUrvNBV/Bt6AHGPWj36lC/tjFVLnayYudBRhrO4V
MbRq4IvHYqmAh+bitYcVbkDwY5DuPtJx2eWyynFdpPL0Oua2ql2njE86+r21+P/i
Ksp0MCGPaVM1M4FhXkDkXpzfbytxiuO1DCNvwW8XCJdwwNtdJ2ceseeKojXAYPsw
Aec0mE27mrZs/72IwWLMaftyoL+r0bjgQuDAHGU2CHXKJ91zdfyjMzpZmA1lLwCk
WhFhL08X4xOVXZqiilmW1tRAunJacwOby0iGs9cLghXAMdMve8gQOWjqYnz2X2n3
SQ7bSSQkwkS0WuQvhgO/6nhri83fGslQlURNctElwi2Vj0zy4tuyLus55uqRyaeL
GZQaIc9oZIK81Qew0Tev3J1npFPxdN0xwfRKKGqVj/UCQLzXE4hCPYjyrnNDHCLh
GsSf+jE98syo1XhNMIUZ
=FuX+
-----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]
Re: mixmaster cron error
#266872
Author: Nomen Nescio
Date: Thu, 24 Apr 2014 21:50
34 lines
2491 bytes
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256

> On Thu, 24 Apr 2014 23:07:23 +0200 (CEST), Anonymous Remailer (austria) wrote in
> Message-Id: <5e80748d39cfed29efac0ca1ed4a9611@remailer.privacy.at>:


> I think that I am going clear the server and start over.  It
> seems from what you and some others are saying is that an 'adduser
> mixmaster' is created and the 'apt-get install mixmaster' is
> usually done when logged into user mixmaster.  I am trying to keep
> maticulous notes on everything I do, which I may publish on some
> site if I can get mixmaster installed ok.  I will wait and see if
> you have any other comments before preceeding.

> If you run 'apt-get install mixmaster', you're installing the packaged
> version and you don't need to manually create any users.  This is the
> easiest installation but limits you to running an older version of
> Mixmaster (the latest to have been packaged).  Personally I prefer to
> compile Mixmaster from source but others may argue in favour of the
> packaged solution.

> If you install from source, it's still quite simple but you need to have
> all the tools installed for compiling software.  This is usually a
> matter of trial and error: Running the Mixmaster install and reacting to
> what it fails on.

  Ok, I think I have it now.  I thought that you were not supposed 
to install anything in root, so I installed mixmaster in 'adduser 
mix'.  I guess that 'apt-get install mixmaster' in root does 
everything for you, like installing postfix. I thought doing it 
that way in root would install it in root.

Re: mixmaster cron error
#266874
Author: Nomen Nescio
Date: Fri, 25 Apr 2014 04:06
65 lines
3353 bytes
In article <a06e0e85ee28b4552fcef160c8a0ad10@remailer.privacy.at>
"Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> 
wrote:
>
>
> > 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
>
> > su mixmaster -c "/usr/bin/mixmaster-update"
> > fi
>
>   Why am I getting this error now?  The stats are updating ok, but
> what the ..txt.t is, I don't know.  Files are no on my system.
>
> Info: All Pingers File Downloaded OK.
> /var/lib/mixmaster/used-stats/mlist.txt.t: Permission denied
> /var/lib/mixmaster/used-stats/rlist.txt.t: Permission denied
> /var/lib/mixmaster/used-stats/pubring.mix.t: Permission denied
> /var/lib/mixmaster/used-stats/pubring.asc.t: Permission denied
> http://pinger.mixmin.net/
> downloading /var/lib/mixmaster/used-stats/mlist.txt from
> http://pinger.mixmin.net/mlist.txt...done
> downloading /var/lib/mixmaster/used-stats/rlist.txt from
> http://pinger.mixmin.net/rlist.txt...done
> downloading /var/lib/mixmaster/used-stats/pubring.mix from
> http://pinger.mixmin.net/pubring.mix...done
> downloading /var/lib/mixmaster/used-stats/pubring.asc from
> http://pinger.mixmin.net/pgp-all.asc...done

The NSA has haXored your reMAIler.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads