Subject: pkg/24041: mailman-2.1.3 check_perms errors
To: None <gnats-bugs@gnats.NetBSD.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 01/10/2004 12:31:54
>Number: 24041
>Category: pkg
>Synopsis: mailman-2.1.3 check_perms errors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 10 17:32:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Kimmo Suominen
>Release: NetBSD 1.6ZG / pkgsrc 2003-12-27
>Organization:
_ _
| |_(_)_ __
| / / | ' \ Kimmo Suominen
|_\_\_|_|_|_| kim@tac.nyc.ny.us
>Environment:
System: NetBSD nix.gw.com 1.6ZG NetBSD 1.6ZG (GW-GENERIC) #63: Sat Dec 27 21:40:17 EST 2003 kim@nix.gw.com:/usr/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
Running /usr/pkg/lib/mailman/bin/check_perms identifies 106 errors,
and exits with a traceback due to a ".pkgsrc" file.
>How-To-Repeat:
directory must be at least 02775: /var/db/mailman
directory must be at least 02775: /usr/pkg/lib/mailman
directory permissions must be 0775: /usr/pkg/lib/mailman/support
directory permissions must be 0775: /usr/pkg/lib/mailman/bin
directory permissions must be 0775: /usr/pkg/lib/mailman/templates
directory permissions must be 0775: /usr/pkg/lib/mailman/scripts
directory permissions must be 0775: /usr/pkg/lib/mailman/cron
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman
directory permissions must be 0775: /usr/pkg/lib/mailman/messages
directory permissions must be 0775: /usr/pkg/lib/mailman/icons
directory permissions must be 0775: /usr/pkg/lib/mailman/tests
directory permissions must be 0775: /usr/pkg/lib/mailman/cgi-bin
directory permissions must be 0775: /usr/pkg/lib/mailman/mail
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/big5
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/cs
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/de
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/en
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/es
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/et
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/eu
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/fi
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/fr
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/gb
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/hu
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/it
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/ja
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/ko
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/lt
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/nl
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/no
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/pl
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/pt
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/pt_BR
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/ru
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/sr
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/sv
directory permissions must be 0775: /usr/pkg/lib/mailman/templates/uk
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/email
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/japanese
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/lib
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/korean
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/japanese/python
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/japanese/c
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/japanese/mappings
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/japanese/aliases
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/lib/python2.2
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/lib/python2.2/site-packages
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/korean/mappings
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/korean/c
directory permissions must be 0775: /usr/pkg/lib/mailman/pythonlib/korean/python
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Cgi
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Logging
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Archiver
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Handlers
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Queue
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Bouncers
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/MTA
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Gui
directory permissions must be 0775: /usr/pkg/lib/mailman/Mailman/Commands
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/cs
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/da
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/de
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/es
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/et
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/eu
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/fi
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/fr
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/hu
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/it
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/ja
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/ko
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/lt
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/nl
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/no
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/pl
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/pt
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/pt_BR
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/ru
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/sr
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/sv
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/uk
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/cs/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/da/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/de/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/es/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/et/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/eu/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/fi/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/fr/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/hu/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/it/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/ja/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/ko/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/lt/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/nl/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/no/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/pl/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/pt/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/pt_BR/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/ru/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/sr/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/sv/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/messages/uk/LC_MESSAGES
directory permissions must be 0775: /usr/pkg/lib/mailman/tests/bounces
directory permissions must be 0775: /usr/pkg/lib/mailman/tests/msgs
/var/db/mailman/archives/private must not be other-readable
/usr/pkg/lib/mailman/mail/mailman must be set-gid
Traceback (most recent call last):
File "/usr/pkg/lib/mailman/bin/check_perms", line 373, in ?
checkdata()
File "/usr/pkg/lib/mailman/bin/check_perms", line 327, in checkdata
mode = statmode(path)
File "/usr/pkg/lib/mailman/bin/check_perms", line 87, in statmode
return os.stat(path)[ST_MODE]
OSError: [Errno 20] Not a directory: '/var/db/mailman/lists/.pkgsrc/config.pck'
>Fix:
I'm not sure how to prevent the ".pkgsrc" file from being created.
Could it be removed from an INSTALL script?
The permissions could possibly be best fixed by running "check_perms -f"
as the last step of the installation.
>Release-Note:
>Audit-Trail:
>Unformatted: