According to the README.gentoo.gz, the bin/mmsitepass program should be run as user mailman. However the mailman user does not have write permission on adm.pw file and the command fails. Reproducible: Always Steps to Reproduce: 1. su - mailman 2. ./bin/mmsitepass 3. Enter the passwords when prompted Actual Results: Permission denied error on /usr/local/mailman/data/adm.pw. Expected Results: The ebuild should install the file adm.pw with 660 permission.
can't reproduce here: mailman@localhost ~ $ ./bin/mmsitepass New site password: Again to confirm password: Password changed. mailman@localhost ~ $ ls -l ./data/adm.pw -rw-r----- 1 mailman mailman 41 Feb 11 06:33 ./data/adm.pw during postinst, the ebuild run `./bin/check_perms -f` to check for and fix any perms problem. You might want to run it again as root.
Ok...I did that but it still did not fix the perms correctly. As you can see adm.pw is still owned by root and not mailman. Also, even though I ran it with -f as root, it asked me to run it again as root or mailman with -f flag. floyd root # /usr/local/mailman/bin/check_perms -f directory permissions must be 02775: /usr/local/mailman/archives/private/friends.mbox (fixing) directory permissions must be 02775: /usr/local/mailman/archives/private/friends (fixing) directory permissions must be 02775: /usr/local/mailman/archives/private/friends/attachments (fixing) directory permissions must be 02775: /usr/local/mailman/archives/private/friends/2005-February (fixing) directory permissions must be 02775: /usr/local/mailman/archives/private/friends/attachments/20050211 (fixing) /usr/local/mailman/data/adm.pw permissions must be exactly 0640 (got 0100660) (fixing) Problems found: 6 Re-run as mailman (or root) with -f flag to fix floyd root # /usr/local/mailman/bin/check_perms -f No problems found floyd root # floyd root # l /usr/local/mailman/data/ total 85 drwxrwsr-x 2 mailman mailman 272 Feb 11 12:08 ./ drwxrwsr-x 20 mailman mailman 552 Feb 11 10:43 ../ -rw-r----- 1 root mailman 41 Feb 11 10:01 adm.pw -rw-r--r-- 1 mailman mailman 1497 Feb 11 10:39 aliases -rw-r--r-- 1 mailman mailman 49152 Feb 11 10:39 aliases.db -rw-r----- 1 root mailman 41 Nov 24 19:01 creator.pw -rw-r--r-- 1 root mailman 10 Nov 24 18:50 last_mailman_version -rw-rw---- 1 mailman mailman 6 Feb 11 10:21 master-qrunner.pid -rw-r--r-- 1 mailman mailman 14110 Feb 10 16:44 sitelist.cfg
ok, I confirm that `./bin/check_perms -f` can only change perms, not ownership. Your problem could be that you ran `/usr/local/mailman/bin/mmsitepass as root at some point. root owns data/adm.pwd from a clean install: >>> net-mail/mailman-2.1.5-r4 merged. >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. gentoo mailman # ls /usr/local/mailman/data/ -l total 20 -rw-r--r-- 1 root mailman 10 Feb 12 12:30 last_mailman_version -rw-r--r-- 1 mailman mailman 14110 Feb 12 12:30 sitelist.cfg gentoo mailman # su - mailman mailman@gentoo ~ $ ./bin/mmsitepass New site password: Again to confirm password: Password changed. mailman@gentoo ~ $ ls /usr/local/mailman/data/ adm.pw last_mailman_version sitelist.cfg mailman@gentoo ~ $ ls /usr/local/mailman/data/ -l total 24 -rw-r----- 1 mailman mailman 41 Feb 12 12:32 adm.pw -rw-r--r-- 1 root mailman 10 Feb 12 12:30 last_mailman_version -rw-r--r-- 1 mailman mailman 14110 Feb 12 12:30 sitelist.cfg
Ok...probably you are right. Looks like a local problem. Closing the bug.