Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-09 Thread Steve Matzura
On Sat, 08 Aug 2015 18:47:29 -0700, Mark Sapiro m...@msapiro.net
wrote:

On 08/08/2015 06:22 PM, Steve Matzura wrote:
 On Sat, 08 Aug 2015 12:39:19 -0700, Mark asked:
 
 What does

 groups mailman

 report? It should be 'mailman : mailman'. If so, and the crons are
 getting permission problems, check if SELinux is enabled and if so, try
 disabling it.
 
 It's mailman : mailman postfix, and SELinux is disabled according to
 getenforce.


But it was mailman : postfix. Larry Turnbull  fixed it by adding the
'mailman' group.

No errors on the overnights, Things appear to be working correctly.
I'm trying to run the password reminder job now, /var/log/messages
shows it started twenty-three minutes ago, I haven't received any mail
messages for password reminders on any of the lists on this system, so
for all I know it may still be running and I'll just have to wait. If
and when it finishes, I'll report.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-09 Thread Mark Sapiro
On 08/09/2015 08:25 AM, Steve Matzura wrote:
 
 No errors on the overnights, Things appear to be working correctly.
 I'm trying to run the password reminder job now, /var/log/messages
 shows it started twenty-three minutes ago, I haven't received any mail
 messages for password reminders on any of the lists on this system, so
 for all I know it may still be running and I'll just have to wait. If
 and when it finishes, I'll report.


It shouldn't take that long. What is the exact command you issued (or
did you run it by modifying Mailman's crontab)? What if anything does

ps -fwwC python | grep mailpasswds

report?

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-09 Thread Mark Sapiro
On 08/09/2015 12:28 PM, Steve Matzura wrote:
 
 I changed the crontab to a few minutes later than current time on
 today's day of the month, and I did try the process show command and
 it showed nothing running.
 
 The command in the crontab is:
 
 /usr/bin/python -S /usr/local/mailman/cron/mailpasswds


OK. So mailpasswds is no longer running. Presumably, you are getting
emailed output from cron as you were seeing the prior errors, so if you
received nothing, then the cron produced no output which is normal.

Do you actually have lists with members with the list's send_reminders =
Yes and at least some members Get password reminder email for this
list? = Yes?

Is Mailman running and delivering mail?

Is there anything in Mailman's error log (/usr/local/mailman/logs/error)?

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-09 Thread Steve Matzura
On Sun, 09 Aug 2015 08:44:56 -0700, Mark wrote:

On 08/09/2015 08:25 AM, Steve Matzura wrote:
 
 No errors on the overnights, Things appear to be working correctly.
 I'm trying to run the password reminder job now, /var/log/messages
 shows it started twenty-three minutes ago, I haven't received any mail
 messages for password reminders on any of the lists on this system, so
 for all I know it may still be running and I'll just have to wait. If
 and when it finishes, I'll report.


It shouldn't take that long. What is the exact command you issued (or
did you run it by modifying Mailman's crontab)? What if anything does

ps -fwwC python | grep mailpasswds

I changed the crontab to a few minutes later than current time on
today's day of the month, and I did try the process show command and
it showed nothing running.

The command in the crontab is:

/usr/bin/python -S /usr/local/mailman/cron/mailpasswds

report?
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Permissions error on all Mailman overnights

2015-08-08 Thread Steve Matzura
Every night, I get the following error at the bottom of a mail message
to my mailman list telling me that checkdbs, digest and disabled
failed:

IOError: [Errno 13] Permission denied:
'/usr/local/mailman/locks/mailman.lock.{my-FQDN}.{some-number}.0'

This also happened on the one and only password reminder message that
went out over a week ago, which no one received.

{some-number} is presumably the process ID of the job's process.

Here are descriptions of the locks directory on the old and new
systems--i.e., the one that works, and the one with the job failures.
The old system is Debian 4, from 2009, which has not received any
software upgrades since 2010. 'list' is the name of the Mailman user
and group. The locks directory, /var/lib/mailman/locks, is defined
thus:

lrwxrwxrwx 1 root root 18 2009-05-01 02:31 locks - ../../lock/mailman
drwxrwxrwt 4 root root 4096 2015-08-08 02:56 lock
drwxrwsr-x 2 root list 4096 2015-08-08 12:00 mailman

On the new Fedora 20 system with hand-built Mailman up to date,
'mailman' is its username and group, and the locks directory,
/usr/local/mailman/locks, is defined thus:

drwxrwsr-x 2 root mailman 4096 Aug  8 14:37 locks

The new system's permissions don't define the locks directory as
temporary, although at this very moment there are files in
it--master-qrunner, and master-qrunner.{my-FQDN}.{some-number}, both
of which have *tomorrow's* dates on them. ???

I'm thinking the locks directory may be at fault here, and if it is,
what was done wrong when Mailman was built or configured? This is
important not just because the mail system is not running correctly at
this time, but because I will be installing a second instance of
Mailman to support a new domain I'll be hosting, so I'm thinking
whatever I did wrong the first time will happen again, unless I
prevent it.

As always, thanks in advance for assistance.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-08 Thread Mark Sapiro
On 08/08/2015 08:12 AM, Steve Matzura wrote:
 Every night, I get the following error at the bottom of a mail message
 to my mailman list telling me that checkdbs, digest and disabled
 failed:
 
 IOError: [Errno 13] Permission denied:
 '/usr/local/mailman/locks/mailman.lock.{my-FQDN}.{some-number}.0'


So cron/checkdbs cant create a lock.

How are these crons running? Are they run form a user crontab
(/var/spool/cron/mailman ?) or a system crontab (/etc/cron.d/mailman ?)?

If the latter, what's the user nsame in the crontab entries.

 This also happened on the one and only password reminder message that
 went out over a week ago, which no one received.
 
 {some-number} is presumably the process ID of the job's process.


Yes.


 Here are descriptions of the locks directory on the old and new
 systems--i.e., the one that works, and the one with the job failures.
 The old system is Debian 4, from 2009, which has not received any
 software upgrades since 2010. 'list' is the name of the Mailman user
 and group. The locks directory, /var/lib/mailman/locks, is defined
 thus:
 
 lrwxrwxrwx 1 root root 18 2009-05-01 02:31 locks - ../../lock/mailman
 drwxrwxrwt 4 root root 4096 2015-08-08 02:56 lock
 drwxrwsr-x 2 root list 4096 2015-08-08 12:00 mailman


This looks OK, but presumably is irrelevant as it's not the system with
the issue, right?


 On the new Fedora 20 system with hand-built Mailman up to date,
 'mailman' is its username and group, and the locks directory,
 /usr/local/mailman/locks, is defined thus:
 
 drwxrwsr-x 2 root mailman 4096 Aug  8 14:37 locks


This looks OK too.


 The new system's permissions don't define the locks directory as
 temporary,


That shouldn't be necessary.


 although at this very moment there are files in
 it--master-qrunner, and master-qrunner.{my-FQDN}.{some-number}, both
 of which have *tomorrow's* dates on them. ???


Those are the master qrunner locks and should be there if Mailman is
running, and the future date is normal. That's the time at which the
lock expires.


 I'm thinking the locks directory may be at fault here, and if it is,
 what was done wrong when Mailman was built or configured? This is
 important not just because the mail system is not running correctly at
 this time, but because I will be installing a second instance of
 Mailman to support a new domain I'll be hosting, so I'm thinking
 whatever I did wrong the first time will happen again, unless I
 prevent it.


Your locks directory is fine. The master qrunner can create its locks
and the running Mailman and presumably the web CGIs can lock and unlock
lists which is done repeatedly. Your only issue seems to be with crons.
This must be either an issue with the user:group running the crons or a
security policy (SELinux or ?) issue.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-08 Thread Larry Turnbull
I am working with Steve on this one as well.

I just checked the system and I see /var/spool/crontab/mailman.

/etc/cron.d/mailman does not exist so it is running under the first
scenario.

If I type crontab -u mailman -l I can see the list of mailman cron jobs that
are scheduled to run.

I am trying to figure out what user the cron system is trying to run the
mailman crons as as that is where I think the problem lies.

Running /usr/local/mailman/bin/check_perms reports no problems so I think we
are good on how permissions are set on the files and folders.

The lists themselves are working fine it is just the cron jobs where things
are a bit odd.

Larry


-Original Message-
From: Mailman-Users
[mailto:mailman-users-bounces+larry=acbradio@python.org] On Behalf Of
Mark Sapiro
Sent: Saturday, August 08, 2015 11:19 AM
To: mailman-users@python.org
Subject: Re: [Mailman-Users] Permissions error on all Mailman overnights

On 08/08/2015 08:12 AM, Steve Matzura wrote:
 Every night, I get the following error at the bottom of a mail message 
 to my mailman list telling me that checkdbs, digest and disabled
 failed:
 
 IOError: [Errno 13] Permission denied:
 '/usr/local/mailman/locks/mailman.lock.{my-FQDN}.{some-number}.0'


So cron/checkdbs cant create a lock.

How are these crons running? Are they run form a user crontab
(/var/spool/cron/mailman ?) or a system crontab (/etc/cron.d/mailman ?)?

If the latter, what's the user nsame in the crontab entries.

 This also happened on the one and only password reminder message that 
 went out over a week ago, which no one received.
 
 {some-number} is presumably the process ID of the job's process.


Yes.


 Here are descriptions of the locks directory on the old and new 
 systems--i.e., the one that works, and the one with the job failures.
 The old system is Debian 4, from 2009, which has not received any 
 software upgrades since 2010. 'list' is the name of the Mailman user 
 and group. The locks directory, /var/lib/mailman/locks, is defined
 thus:
 
 lrwxrwxrwx 1 root root 18 2009-05-01 02:31 locks - ../../lock/mailman 
 drwxrwxrwt 4 root root 4096 2015-08-08 02:56 lock drwxrwsr-x 2 root 
 list 4096 2015-08-08 12:00 mailman


This looks OK, but presumably is irrelevant as it's not the system with the
issue, right?


 On the new Fedora 20 system with hand-built Mailman up to date, 
 'mailman' is its username and group, and the locks directory, 
 /usr/local/mailman/locks, is defined thus:
 
 drwxrwsr-x 2 root mailman 4096 Aug  8 14:37 locks


This looks OK too.


 The new system's permissions don't define the locks directory as 
 temporary,


That shouldn't be necessary.


 although at this very moment there are files in it--master-qrunner, 
 and master-qrunner.{my-FQDN}.{some-number}, both of which have 
 *tomorrow's* dates on them. ???


Those are the master qrunner locks and should be there if Mailman is
running, and the future date is normal. That's the time at which the lock
expires.


 I'm thinking the locks directory may be at fault here, and if it is, 
 what was done wrong when Mailman was built or configured? This is 
 important not just because the mail system is not running correctly at 
 this time, but because I will be installing a second instance of 
 Mailman to support a new domain I'll be hosting, so I'm thinking 
 whatever I did wrong the first time will happen again, unless I 
 prevent it.


Your locks directory is fine. The master qrunner can create its locks and
the running Mailman and presumably the web CGIs can lock and unlock lists
which is done repeatedly. Your only issue seems to be with crons.
This must be either an issue with the user:group running the crons or a
security policy (SELinux or ?) issue.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy:
http://wiki.list.org/x/QIA9 Searchable Archives:
http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
https://mail.python.org/mailman/options/mailman-users/larry%40acbradio.org
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-08 Thread Mark Sapiro
On 08/08/2015 10:26 AM, Larry Turnbull wrote:
 
 I just checked the system and I see /var/spool/crontab/mailman.


OK, this is the user crontab for the user 'mailman'.


 /etc/cron.d/mailman does not exist so it is running under the first
 scenario.


Normally /etc/cron.d/mailman does not exist in a source install. Some
packages, e.g. Debian/Ubuntu, install this, but a source install doesn't.


 If I type crontab -u mailman -l I can see the list of mailman cron jobs that
 are scheduled to run.


And what that does is just list the contents of /etc/cron.d/mailman.


 I am trying to figure out what user the cron system is trying to run the
 mailman crons as as that is where I think the problem lies.


crons in crontabs in files /var/spool/crontab/XXX are run as user XXX.


 Running /usr/local/mailman/bin/check_perms reports no problems so I think we
 are good on how permissions are set on the files and folders.
 
 The lists themselves are working fine it is just the cron jobs where things
 are a bit odd.


What does

groups mailman

report? It should be 'mailman : mailman'. If so, and the crons are
getting permission problems, check if SELinux is enabled and if so, try
disabling it.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-08 Thread Steve Matzura
On Sat, 08 Aug 2015 09:19:27 -0700, Mark Sapiro m...@msapiro.net
wrote:

On 08/08/2015 08:12 AM, Steve Matzura wrote:
 Every night, I get the following error at the bottom of a mail message
 to my mailman list telling me that checkdbs, digest and disabled
 failed:
 
 IOError: [Errno 13] Permission denied:
 '/usr/local/mailman/locks/mailman.lock.{my-FQDN}.{some-number}.0'


So cron/checkdbs cant create a lock.

How are these crons running? Are they run form a user crontab
(/var/spool/cron/mailman ?) or a system crontab (/etc/cron.d/mailman ?)?

The former.

Your locks directory is fine. The master qrunner can create its locks
and the running Mailman and presumably the web CGIs can lock and unlock
lists which is done repeatedly. Your only issue seems to be with crons.
This must be either an issue with the user:group running the crons or a
security policy (SELinux or ?) issue.

No SELinux. getenforce says Disabled.
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-08 Thread Steve Matzura
On Sat, 08 Aug 2015 12:39:19 -0700, Mark asked:

What does

groups mailman

report? It should be 'mailman : mailman'. If so, and the crons are
getting permission problems, check if SELinux is enabled and if so, try
disabling it.

It's mailman : mailman postfix, and SELinux is disabled according to
getenforce.

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Permissions error on all Mailman overnights

2015-08-08 Thread Mark Sapiro
On 08/08/2015 06:22 PM, Steve Matzura wrote:
 On Sat, 08 Aug 2015 12:39:19 -0700, Mark asked:
 
 What does

 groups mailman

 report? It should be 'mailman : mailman'. If so, and the crons are
 getting permission problems, check if SELinux is enabled and if so, try
 disabling it.
 
 It's mailman : mailman postfix, and SELinux is disabled according to
 getenforce.


But it was mailman : postfix. Larry Turnbull  fixed it by adding the
'mailman' group.

He reported this to me in an off-list message which I deleted thinking
it had gone to the list.

You should be OK now. If not, post tracebacks from runs that abort going
forward.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org