Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81659 - Bad permissions on mailman password db adm.pw
Summary: Bad permissions on mailman password db adm.pw
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 12:51 UTC by Nadeem Hasan
Modified: 2005-02-12 13:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nadeem Hasan 2005-02-11 12:51:41 UTC
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.
Comment 1 Tuan Van (RETIRED) gentoo-dev 2005-02-12 08:48:14 UTC
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.
Comment 2 Nadeem Hasan 2005-02-12 10:59:46 UTC
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
Comment 3 Tuan Van (RETIRED) gentoo-dev 2005-02-12 12:38:13 UTC
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
Comment 4 Nadeem Hasan 2005-02-12 13:25:16 UTC
Ok...probably you are right. Looks like a local problem. Closing the bug.