On Tue, 31 Jan 2006 14:17:42 -0800 Mark Sapiro <msapiro@value.net> wrote:
I was checking my system for world-writable files, and found lots of data/bounce-events-?????.pck that are world-writable: imacat@rinse ~ % ls -lt /var/lib/mailman/data | grep 'rw. ' -rw-rw-rw- 1 list list 0 2006-01-31 01:26 bounce-events-02258.pck -rw-rw-rw- 1 list list 4786 2005-12-26 17:36 bounce-events-26086.pck =2E.. imacat@rinse ~ %d But to answer your question, what's the default umask on your system? I
imacat wrote: think that's what controls this.
Frankly, I got a different test result.
I put a line "touch /var/tmp/mailman.umask.test" to
/etc/init.d/mailman (which is copied from scripts/mailman) and reboot my system. Here is what I got:
imacat@rinse ~ % ls -l /var/tmp/mailman.umask.test -rw-r--r-- 1 root root 0 2006-02-02 02:41 /var/tmp/mailman.umask.test imacat@rinse ~ % ls -l /var/lib/mailman/data/bounce-events-*.pck -rw-rw-rw- 1 list list 0 2006-02-02 02:41 /var/lib/mailman/data/bounce-events-02211.pck imacat@rinse ~ %
Appreantly the umask when running /etc/init.d/mailman is 0022 but
mailman still create data/bounce-events-?????.pck as 0666. Or the python (mailmanctl) uses a different "system default umask", other than its parent process /etc/init.d/mailman?
I noted that in the source of mailman 2.1.7 there are 2 lines in
bin/mailmanctl:
line 421-422 # Clear our file mode creation umask os.umask(0)
Is this intended? Is it the reason why data/bounce-events-?????.pck
are world-writable?
-- Best regards, imacat ^_*' <imacat@mail.imacat.idv.tw> PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt
<<Woman's Voice>> News: http://www.wov.idv.tw/ Tavern IMACAT's: http://www.imacat.idv.tw/ TLUG List Manager: http://lists.linux.org.tw/cgi-bin/mailman/listinfo/tlug