[Mailman-Users] Membership List Include Legend Link Wrong

2020-02-25 Thread Dennis Putnam
The link to include legend on the membership management page is:

http://localhost.localdomain/mailman/admin/rushtalk/members/list?legend=yes

Why is that not defaulting to the real host and how do I fix it? TIA.



signature.asc
Description: OpenPGP digital signature
--
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] Archives Permission Denied

2020-02-25 Thread Dennis Putnam
I am in the process of migrating mailman to a new server. It seems to
have been done correctly but mailman is unable to write to the archive
files.

IOError: [Errno 13] Permission denied:
'/var/lib/mailman/archives/private/rushtalk/2020-February.txt'

 I ran check_perms and it found no issues. However, when I look at the
ownership of the archives I get this:

-rw-r--r--.    1 root mailman   72404 Feb 16 14:26 2020-February.txt

Shouldn't either the owner be mailman or permissions be -rw-rw-r--? TIA.





signature.asc
Description: OpenPGP digital signature
--
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] Archives Permission Denied

2020-02-25 Thread Brian Carpenter

On 2/25/20 5:49 AM, Dennis Putnam wrote:

IOError: [Errno 13] Permission denied:
'/var/lib/mailman/archives/private/rushtalk/2020-February.txt'

  I ran check_perms and it found no issues. However, when I look at the
ownership of the archives I get this:

-rw-r--r--.    1 root mailman   72404 Feb 16 14:26 2020-February.txt

Shouldn't either the owner be mailman or permissions be -rw-rw-r--? TIA.


Hi Dennis,

I hope you are doing well.

From what I am seeing with my own servers, the permissions should be 664.

--
Please let me know if you need further assistance.

Thank you for your business. We appreciate our clients.
Brian Carpenter
EMWD.com

--
EMWD's Knowledgebase:
https://clientarea.emwd.com/index.php/knowledgebase

EMWD's Community Forums
http://discourse.emwd.com/

Mailan 2 & 3 Hosting
https://www.mailmanhost.com

--
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] Membership List Include Legend Link Wrong

2020-02-25 Thread Brian Carpenter

On 2/25/20 5:36 AM, Dennis Putnam wrote:

The link to include legend on the membership management page is:

http://localhost.localdomain/mailman/admin/rushtalk/members/list?legend=yes

Why is that not defaulting to the real host and how do I fix it? TIA.


Have you tried running:

/mailman_installation_directory/bin/withlist -l -r fix_url listname -u 
listdomain


for the list to see if that fixes the issue?

--
Please let me know if you need further assistance.

Thank you for your business. We appreciate our clients.
Brian Carpenter
EMWD.com

--
EMWD's Knowledgebase:
https://clientarea.emwd.com/index.php/knowledgebase

EMWD's Community Forums
https://discourse.emwd.com/

Mailman 2 & 3 Hosting
https://www.mailmanhost.com

--
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] Archives Permission Denied

2020-02-25 Thread Mark Sapiro
On 2/25/20 6:34 AM, Brian Carpenter wrote:
> On 2/25/20 5:49 AM, Dennis Putnam wrote:
>> IOError: [Errno 13] Permission denied:
>> '/var/lib/mailman/archives/private/rushtalk/2020-February.txt'
>>
>>   I ran check_perms and it found no issues. However, when I look at the
>> ownership of the archives I get this:
>>
>> -rw-r--r--.    1 root mailman   72404 Feb 16 14:26 2020-February.txt
>>
>> Shouldn't either the owner be mailman or permissions be -rw-rw-r--? TIA.
> 
...
> From what I am seeing with my own servers, the permissions should be 664.
> 

That's true, but more importantly, /var/lib/mailman/ should be 2775 and
group mailman as should all the sub-directories  archives, data, lists,
locks, logs, qfiles and spam. /var/lib/mailman/archives/private is
tricky. it should be group mailman and either 2771 or owned by the web
server user and 2770. See
 for more on this.

-- 
Mark Sapiro The 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] Membership List Include Legend Link Wrong

2020-02-25 Thread Dennis Putnam
On 2/25/2020 9:37 AM, Brian Carpenter wrote:
> On 2/25/20 5:36 AM, Dennis Putnam wrote:
>> The link to include legend on the membership management page is:
>>
>> http://localhost.localdomain/mailman/admin/rushtalk/members/list?legend=yes
>>
>>
>> Why is that not defaulting to the real host and how do I fix it? TIA.
>
> Have you tried running:
>
> /mailman_installation_directory/bin/withlist -l -r fix_url listname -u
> listdomain
>
> for the list to see if that fixes the issue?
>
Yes, I did that once when I first start the migration but I must have
made some inadvertent changes at some point. I ran it again and it
worked. Thanks.



signature.asc
Description: OpenPGP digital signature
--
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] Archives Permission Denied

2020-02-25 Thread Dennis Putnam
On 2/25/2020 12:12 PM, Mark Sapiro wrote:
> On 2/25/20 6:34 AM, Brian Carpenter wrote:
>> On 2/25/20 5:49 AM, Dennis Putnam wrote:
>>> IOError: [Errno 13] Permission denied:
>>> '/var/lib/mailman/archives/private/rushtalk/2020-February.txt'
>>>
>>>   I ran check_perms and it found no issues. However, when I look at the
>>> ownership of the archives I get this:
>>>
>>> -rw-r--r--.    1 root mailman   72404 Feb 16 14:26 2020-February.txt
>>>
>>> Shouldn't either the owner be mailman or permissions be -rw-rw-r--? TIA.
> ...
>> From what I am seeing with my own servers, the permissions should be 664.
>>
> That's true, but more importantly, /var/lib/mailman/ should be 2775 and
> group mailman as should all the sub-directories  archives, data, lists,
> locks, logs, qfiles and spam. /var/lib/mailman/archives/private is
> tricky. it should be group mailman and either 2771 or owned by the web
> server user and 2770. See
>  for more on this.
>
So shouldn't 'check_perms -f' have fixed that?

This is a server used strictly for mailman. There are only 2 users with
access so I am not worried about the caveat in that article. It looks
like you are giving me options and I am not sure what to do now?



signature.asc
Description: OpenPGP digital signature
--
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] Archives Permission Denied

2020-02-25 Thread Mark Sapiro
On 2/25/20 10:25 AM, Dennis Putnam wrote:

> So shouldn't 'check_perms -f' have fixed that?


check_perms is not perfect. See below for more.


> This is a server used strictly for mailman. There are only 2 users with
> access so I am not worried about the caveat in that article. It looks
> like you are giving me options and I am not sure what to do now?


Either way works, but in your case, I would ensure
/var/lib/mailman/archives/private is group mailman and mode is 2771.
With this setting, check_perms will say

> Warning: Private archive directory is other-executable (o+x).
>  This could allow other users on your system to read private archives.
>  If you're on a shared multiuser system, you should consult the
>  installation manual on how to fix this.

which you can ignore. The reason I suggest this is so you don't need to
be concerned about the owner of /var/lib/mailman/archives/private

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan



signature.asc
Description: OpenPGP digital signature
--
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