
I am getting errors in my nightly gzip job. Any ideas what is causing it? Check-perms does not find any errors.
Message Headers Received: from web1.cs.montana.edu (localhost.localdomain [127.0.0.1]) by web1.cs.montana.edu (8.12.5/8.12.5) with ESMTP id h1LAR0d0006676 for <mailman@web1.cs.montana.edu>; Fri, 21 Feb 2003 03:27:00 -0700 Received: (from mailman@localhost) by web1.cs.montana.edu (8.12.5/8.12.5/Submit) id h1LAR0it006674 for mailman; Fri, 21 Feb 2003 03:27:00 -0700 Date: Fri, 21 Feb 2003 03:27:00 -0700 Message-Id: <200302211027.h1LAR0it006674@web1.cs.montana.edu> From: root@web1.cs.montana.edu (Cron Daemon) To: mailman@web1.cs.montana.edu Subject: Cron <mailman@web1> /usr/bin/python2 -S /usr/local/mailman/cron/nightly_gzip X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <HOME=/var/mailman> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=mailman>
Message Excerpt: Traceback (most recent call last): File "/usr/local/mailman/cron/nightly_gzip", line 154, in ? main() File "/usr/local/mailman/cron/nightly_gzip", line 140, in main compress(f) File "/usr/local/mailman/cron/nightly_gzip", line 81, in compress outfp = gzip.open(txtfile+'.gz', 'wb', 6) File "//usr/lib/python2.2/gzip.py", line 30, in open return GzipFile(filename, mode, compresslevel) File "//usr/lib/python2.2/gzip.py", line 43, in __init__ fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') IOError: [Errno 13] Permission denied: '/usr/local/mailman/archives/private/cs223/2003-February.txt.gz'
Permissions on my those files are: drwxrwsr-x 2 mailman mailman 4096 Feb 18 14:42 2003-February -rw-rw-r-- 1 mailman mailman 1484 Feb 18 14:42 2003-February.txt drwxrws--- 2 mailman mailman 4096 Feb 18 14:42 database -rw-rw-rw- 1 apache mailman 1156 Feb 18 14:42 index.html -rw-rw---- 1 mailman mailman 844 Feb 18 14:42 pipermail.pck
--Luke --Computer Science Sysadmin, MSU Bozeman --admin(AT)cs.montana.edu 994-3931

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Lucas Albers wrote:
I am getting errors in my nightly gzip job. Any ideas what is causing it? Check-perms does not find any errors. [...] Message Excerpt: Traceback (most recent call last): File "/usr/local/mailman/cron/nightly_gzip", line 154, in ? main() File "/usr/local/mailman/cron/nightly_gzip", line 140, in main compress(f) File "/usr/local/mailman/cron/nightly_gzip", line 81, in compress outfp = gzip.open(txtfile+'.gz', 'wb', 6) File "//usr/lib/python2.2/gzip.py", line 30, in open return GzipFile(filename, mode, compresslevel) File "//usr/lib/python2.2/gzip.py", line 43, in __init__ fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') IOError: [Errno 13] Permission denied: '/usr/local/mailman/archives/private/cs223/2003-February.txt.gz'
Permissions on my those files are: drwxrwsr-x 2 mailman mailman 4096 Feb 18 14:42 2003-February -rw-rw-r-- 1 mailman mailman 1484 Feb 18 14:42 2003-February.txt drwxrws--- 2 mailman mailman 4096 Feb 18 14:42 database -rw-rw-rw- 1 apache mailman 1156 Feb 18 14:42 index.html -rw-rw---- 1 mailman mailman 844 Feb 18 14:42 pipermail.pck
Just out of curiosity, what are the perms on the directory where mailman is trying to create the file (/usr/local/mailman/archives/private/cs223)?
If that looks good, what are the perms of the directories back up the tree?
Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
Wisdom has two parts: (1) having a lot to say and (2) not saying it.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
iD8DBQE+WnJNuv+09NZUB1oRAjUbAJ4t0AJzuB3UxKehPXomJDlSIXwu3wCgjeXJ /GiH4lBz9A+WYT9pm6Jpy/A= =yhLs -----END PGP SIGNATURE-----

--Luke --Computer Science Sysadmin, MSU Bozeman --admin(AT)cs.montana.edu 994-3931
-----Original Message----- From: mailman-users-bounces+admin=cs.montana.edu@python.org [mailto:mailman-users-bounces+admin=cs.montana.edu@python.org] On Behalf Of Todd Sent: Monday, February 24, 2003 12:28 PM To: mailman-users@python.org Subject: Re: [Mailman-Users] Errors in nightly gzip
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Lucas Albers wrote:
I am getting errors in my nightly gzip job. Any ideas what is causing it? Check-perms does not find any errors. [...] Message Excerpt: Traceback (most recent call last): File "/usr/local/mailman/cron/nightly_gzip", line 154, in ? main() File "/usr/local/mailman/cron/nightly_gzip", line 140, in main compress(f) File "/usr/local/mailman/cron/nightly_gzip", line 81, in compress outfp = gzip.open(txtfile+'.gz', 'wb', 6) File "//usr/lib/python2.2/gzip.py", line 30, in open return GzipFile(filename, mode, compresslevel) File "//usr/lib/python2.2/gzip.py", line 43, in __init__ fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') IOError: [Errno 13] Permission denied: '/usr/local/mailman/archives/private/cs223/2003-February.txt.gz'
Permissions on my those files are: drwxrwsr-x 2 mailman mailman 4096 Feb 18 14:42 2003-February -rw-rw-r-- 1 mailman mailman 1484 Feb 18 14:42 2003- February.txt drwxrws--- 2 mailman mailman 4096 Feb 18 14:42 database -rw-rw-rw- 1 apache mailman 1156 Feb 18 14:42 index.html -rw-rw---- 1 mailman mailman 844 Feb 18 14:42 pipermail.pck
Just out of curiosity, what are the perms on the directory where mailman is trying to create the file (/usr/local/mailman/archives/private/cs223)?
ls -l /usr/local/mailman/archives/private/cs223 total 20 drwxrwsr-x 2 mailman mailman 4096 Feb 18 14:42 2003-February -rw-rw-r-- 1 mailman mailman 1484 Feb 18 14:42 2003-February.txt drwxrws--- 2 mailman mailman 4096 Feb 18 14:42 database -rw-rw-rw- 1 apache mailman 1156 Feb 18 14:42 index.html -rw-rw---- 1 mailman mailman 844 Feb 18 14:42 pipermail.pck
If that looks good, what are the perms of the directories back up the tree? ls -ld /usr/local/mailman/lists/ drwxrwsr-x 6 mailman mailman 4096 Feb 19 16:14
Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Luke,
Lucas Albers wrote:
Just out of curiosity, what are the perms on the directory where mailman is trying to create the file (/usr/local/mailman/archives/private/cs223)?
ls -l /usr/local/mailman/archives/private/cs223 total 20 drwxrwsr-x 2 mailman mailman 4096 Feb 18 14:42 2003-February -rw-rw-r-- 1 mailman mailman 1484 Feb 18 14:42 2003-February.txt drwxrws--- 2 mailman mailman 4096 Feb 18 14:42 database -rw-rw-rw- 1 apache mailman 1156 Feb 18 14:42 index.html -rw-rw---- 1 mailman mailman 844 Feb 18 14:42 pipermail.pck
Actually, what I was asking about was the permissions on the directory itself. Like this:
ls -ld /usr/local/mailman/archives/private/cs223
If the permissions there look reasonable, then repeat that command, removing a directory each time, ala:
ls -ld /usr/local/mailman/archives/private ls -ld /usr/local/mailman/archives ls -ld /usr/local/mailman
Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
The end move in politics is always to pick up a gun. -- Buckminster Fuller
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
iD8DBQE+Wpcwuv+09NZUB1oRAhUkAJ0Sf/kkX8g/QbOXebSIK6uKxDBSNwCeLtq/ mPgROeZb2spYAmLVb6WsDso= =3YOY -----END PGP SIGNATURE-----

Todd, [root@web1 root]# ls -ld /usr/local/mailman /usr/local/mailman/archives /usr/local/mailman/archives/private/ drwxrwsr-x 21 mailman mailman 4096 Feb 12 20:17 /usr/local/mailman drwxrwsr-x 4 mailman mailman 4096 Feb 3 19:04 /usr/local/mailman/archives drwxrws--x 10 mailman mailman 4096 Feb 19 16:14 /usr/local/mailman/archives/private/
Sort of annoying really, I am not sure why the permission on some of my subdirectories are off, and check_perms does not seem to find the errors.
-----Original Message----- From: mailman-users-bounces+admin=cs.montana.edu@python.org [mailto:mailman-users-bounces+admin=cs.montana.edu@python.org] On Behalf Of Todd Sent: Monday, February 24, 2003 3:06 PM To: mailman-users@python.org Subject: Re: [Mailman-Users] Errors in nightly gzip
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Luke,
Lucas Albers wrote:
Just out of curiosity, what are the perms on the directory where mailman is trying to create the file (/usr/local/mailman/archives/private/cs223)?
ls -l /usr/local/mailman/archives/private/cs223 total 20 drwxrwsr-x 2 mailman mailman 4096 Feb 18 14:42 2003-February -rw-rw-r-- 1 mailman mailman 1484 Feb 18 14:42 2003-February.txt drwxrws--- 2 mailman mailman 4096 Feb 18 14:42 database -rw-rw-rw- 1 apache mailman 1156 Feb 18 14:42 index.html -rw-rw---- 1 mailman mailman 844 Feb 18 14:42 pipermail.pck
Actually, what I was asking about was the permissions on the directory itself. Like this:
ls -ld /usr/local/mailman/archives/private/cs223
If the permissions there look reasonable, then repeat that command, removing a directory each time, ala:
ls -ld /usr/local/mailman/archives/private ls -ld /usr/local/mailman/archives ls -ld /usr/local/mailman
Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
==== The end move in politics is always to pick up a gun. -- Buckminster Fuller
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
iD8DBQE+Wpcwuv+09NZUB1oRAhUkAJ0Sf/kkX8g/QbOXebSIK6uKxDBSNwCeLtq/ mPgROeZb2spYAmLVb6WsDso= =3YOY -----END PGP SIGNATURE-----
Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
This message was sent to: admin@cs.montana.edu Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/admin%40cs.montana. edu

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi Lucas,
Lucas Albers wrote:
[root@web1 root]# ls -ld /usr/local/mailman /usr/local/mailman/archives /usr/local/mailman/archives/private/ drwxrwsr-x 21 mailman mailman 4096 Feb 12 20:17 /usr/local/mailman drwxrwsr-x 4 mailman mailman 4096 Feb 3 19:04 /usr/local/mailman/archives drwxrws--x 10 mailman mailman 4096 Feb 19 16:14 /usr/local/mailman/archives/private/
Sort of annoying really, I am not sure why the permission on some of my subdirectories are off, and check_perms does not seem to find the errors.
There doesn't appear to be anything wrong with those perms. The private archive directory isn't supposed to be world readable. The one directory that's not listed is /usr/local/mailman/archives/private/cs223 . What are the perms on that one? IIRC, that's the directory that mailman is having trouble writing to.
Todd OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
To tax the community for the advantage of a class is not protection: it is plunder. -- Benjamin Disraeli
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
iD8DBQE+Xcx0uv+09NZUB1oRAmgKAJ9RX3nX0uJdjKHVM5RM06n7S632lQCePxfn Cr7/IpTFlleGg1herAA3aFw= =Wj49 -----END PGP SIGNATURE-----
participants (3)
-
'Todd'
-
Lucas Albers
-
Todd