Okay, I figured out how to prune with cPanel installations. Your (Mark's) script is much faster, of course, but this works.
During the process, I turned off archiving in the web interface, though I don't know whether that was necessary. In cPanel, the archives are in /usr/local/cpanel/3rdparty/mailman/archives/private. Move the archive directory out of the way: mv listname listname.save Edit/prune the listname.mbox file (or empty it with cp /dev/null). Turn archiving back on, send a test message, confirm it's been archived, delete the listname.save directory. Anyway, thanks again! Dean -----Original Message----- From: Mark Sapiro <m...@msapiro.net> Sent: Tuesday, October 26, 2021 11:55 AM To: mailman-users@python.org Subject: [Mailman-Users] Re: check_arch script changing owner On 10/25/21 11:11 AM, Dean Collins wrote: > Using Mailman version: 2.1.33 packaged for cPanel. > > Running the script I obtained from > https://www.msapiro.net/scripts/check_arch changes directory and file > permissions and ownership. For example, in /archives/private/: > > drwxr-x--- 5 mailman username listname_mydomain.org > > becomes > > drwxrwxr-x 5 root root listname_mydomain.org > > And the list then stops archiving. Don't run Mailman scripts as root. Always run them as the Mailman user. > Is there a way to adjust the script? Or run some command afterwards to > set things back to where they were? You can run chmod and chown to set things back, but even if the script is run as root, I don't see how this would happen. The script opens the file read-only and only reads it. This must be a cPanel thing. See https://wiki.list.org/DOC/Mailman%20and%20CPanel -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/ ------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/