diff options
author | bwarsaw <> | 2005-05-13 04:21:54 +0000 |
---|---|---|
committer | bwarsaw <> | 2005-05-13 04:21:54 +0000 |
commit | bce07e58accbc82371ad56ca0b143b916bb9bfde (patch) | |
tree | 226594544b9751a146bd1993792a73713b288939 /bin/check_perms | |
parent | fd88d0606759107336d1a6c6a060771763fdc2bb (diff) | |
download | mailman2-bce07e58accbc82371ad56ca0b143b916bb9bfde.tar.gz mailman2-bce07e58accbc82371ad56ca0b143b916bb9bfde.tar.xz mailman2-bce07e58accbc82371ad56ca0b143b916bb9bfde.zip |
Provide a warning about the private archive directory permissions on shared
multiuser systems, and provide some information on what can be done about it.
Update the install document.
Diffstat (limited to 'bin/check_perms')
-rwxr-xr-x | bin/check_perms | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/check_perms b/bin/check_perms index 5c8ce415..53239e71 100755 --- a/bin/check_perms +++ b/bin/check_perms @@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 1998-2004 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2005 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -209,7 +209,14 @@ def checkarchives(): os.chmod(private, mode & ~S_IROTH) else: print - + # In addition, on a multiuser system you may want to hide the private + # archives so other users can't read them. + if mode & S_IXOTH: + print _("""\ +Warning: Private archive directory is other-executable (o+x). + This could allow other users on your system to read private archives. + If you're on a shared multiuser system, you should consult the + installation manual on how to fix this.""") MBOXPERMS = S_IRGRP | S_IWGRP | S_IRUSR | S_IWUSR |