SA Bugzilla – Bug 1616
razor2 creates user config files mode 0777
Last modified: 2003-04-05 05:08:21 UTC
Running spamd "spamd -d -x -c -a -Q" with RAZOR2 enabled creates default .razor files with mode 0777 owned by the spamc user with group root. .spamassassin files are created with proper permissions but are owned by group root.
should be easy enough to fix with umask in 2.52
the group is fixed in 2.51. permissions are set by umask of the spamd process. we could do something like "if current umask is 0, set to something reasonable", but it seems like the kind of thing you'd just set when you run spamd. thoughts? setting to 2.6 since it would be a new feature to change the umask otehrwise.
Subject: Re: [SAdev] razor2 creates user config files mode 0777 > the group is fixed in 2.51. permissions are set by umask of the spamd > process. we could do something like "if current umask is 0, set to > something reasonable", but it seems like the kind of thing you'd just set > when you run spamd. > > thoughts? Yep, agreed. Really, that's *exactly* what the umask is for, and running daemons with a umask of 000 is a bit like having no password on the root account, ie. a bad idea. ;) --j.
I think we should take The Good Olde Unix Way: If the user wants to shoot himself in the foot, let him ;-)
it seems to be agreed: make sure you run spamd with an appropriate umask, and the resulting file permissions will be good too. :)