summaryrefslogtreecommitdiff
path: root/bin/check_perms
Commit message (Collapse)AuthorAgeFilesLines
* Convert check_perms to mmshell symlink, configuration object, and optparsebwarsaw2006-09-241-393/+0
| | | | usage.
* back port from 2.1.6 / adding new files.tkikuchi2005-08-281-4/+22
|
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Use True/False where appropriate.bwarsaw2003-03-141-16/+29
| | | | | | | | | | | Add LOG_DIR to the list of directories to search. This may not be located under $PREFIX or $EXEC_PREFIX. Closes SF bug #695526 by Luigi Rosa. checkwalk(): Put in a short-circuit so directories are never searched more than once. checkall(): Catch, warn, and ignore when directories don't exist.
* checkwalk(): Fix permissions on -article database files, which must bebwarsaw2002-11-121-0/+14
| | | | at least 0660. b4b5-archfix can mess these perms up.
* checkwalk(): Make sure py, pyc, and pyo files are at least 644.bwarsaw2002-11-051-0/+11
|
* Jon Parise's patch to improve the usage() output for the command linebwarsaw2002-10-211-2/+6
| | | | | | and cron scripts. When code/status == 0, there's no error (it's likely --help output) so send that to stdout. Otherwise, it's an error and the output goes to stderr.
* checkdata(): This should probably check request.db.tmp too.bwarsaw2002-10-201-1/+2
|
* Patch set for SF bug #596565. Use symbolic user/group names insteadbwarsaw2002-08-231-15/+10
| | | | | | | | | | | | | | of numeric ids. Initial idea and patch by Todd Vierling, fleshed out by Barry. Specific changes here: MAILMAN_UID -> MAILMAN_USER MAILMAN_GID -> MAILMAN_GROUP checkwalk(): Use group names instead of group ids __main__: MAILMAN_OWNER -> MAILMAN_USER
* Update some comments.bwarsaw2002-03-171-1/+1
|
* Add BAW comments so we know that these modules still need to bebwarsaw2002-03-051-0/+1
| | | | converted to the Site module abstractions.
* Fix copyright yearsbwarsaw2002-01-011-1/+1
|
* checkmail(): Patch by Marc MERLIN to fix buglet resulting from thebwarsaw2002-01-011-1/+1
| | | | rename of the wrapper program.
* Fix this to check the config.pck and config.pck.last files too.bwarsaw2001-10-041-1/+2
|
* Ben Gertzfield's patch to hardcode the path to the python executablebwarsaw2001-09-071-1/+1
| | | | | | | | | | | | | into the script's #! line -- based on --with-python settings, without losing CVS revision history. #! /usr/bin/env python becomes #! @PYTHON@ which gets substituted for in configure.
* checkcgi(): Calculate the directory for the cgi-bin scripts, sincebwarsaw2001-07-021-2/+3
| | | | CGI_DIR is no longer defined.
* checkwalk(): More special casing for the qfile directories. Thesebwarsaw2001-05-091-21/+42
| | | | | | | | | | | | directories should have 02770 permission, not 02775. checkadminpw(): Check both the adm.pw and the creator.pw files if they exist. checkmta(): Call out to the MTA-specific check routine if the MTA variable is set. main(): Added a call to checkmta().
* checkdata(): Check the permissions on the request.db file.bwarsaw2000-12-081-6/+7
| | | | Also, sundry additional Python2.0-ifications, and a few typo fixes.
* Start of support for i18n; marking of translatable strings.bwarsaw2000-12-071-46/+49
| | | | | Use extended print statement, string methods, and other Python 2.0 features.
* checkmboxfile(): Ensures that the various archive .mbox files have atbwarsaw2000-12-061-1/+21
| | | | least 0660 permissions.
* If we get an import error on "import paths", print a slightly morebwarsaw2000-11-081-1/+9
| | | | helpful error message.
* checkarchivedbs(): Don't bomb out if there are some nondirectories inbwarsaw2000-09-261-1/+1
| | | | the private archive dir.
* Several changes in support of David Champion's SF patch #101331.bwarsaw2000-09-221-15/+27
| | | | | | | | | | | | Specifically, MAILMAN_UID and MAILMAN_GID are now available in mm_cfg, so use these as the gid to check group-ownership against, and as the user to re-run the script as if there are errors. checkall(): Now knows about all of PREFIX, EXEC_PREFIX, and VAR_PREFIX and checks the permissions of them all. It's smart about knowing when any of these directories are the same.
* checkdata(): New function which checks the permissions onbwarsaw2000-06-141-18/+44
| | | | | lists/<listname>/config.db, config.db.last, next-digest, and next-digest-topics.
* A few minor message clarifications.bwarsaw2000-05-081-2/+2
|
* checkwalk(): make sure all subdirectories have at least permissionsbwarsaw2000-04-051-9/+18
| | | | | | | | | 02775 -- i.e. make sure the dirs are group writable. There's a hack to ignore the funky permissions on the private archive dir and the listname/database subdir inside the private archive dir. checkall(): Also make sure $prefix is 02775; this is a change from the requirement that it be 02755.
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-0/+16
|
* checkwalk(): getgrgid raises a KeyError if the gid isn't in the groupbwarsaw1999-12-211-1/+5
| | | | database.
* typobwarsaw1999-11-261-1/+1
|
* checkarchivedbs(): database directory might not exist yet.bwarsaw1999-11-261-1/+6
|
* checkarchivedbs(): minor typobwarsaw1999-11-241-1/+1
|
* checkarchivedbs(): New permissions test which makes sure thatbwarsaw1999-11-241-0/+21
| | | | archives/private/<listname>/database is other 000.
* checkall(): Must also check PREFIX.bwarsaw1999-08-131-0/+12
|
* Use os.error instead of OSError for older Pythonsbwarsaw1999-07-121-2/+8
| | | | | checkadminpw(): wrap stat of data/adm.pw in a try/except to catch situations where there is no site password.
* checkadminpw(): Check the permissions on data/adm.pw, which now mustbwarsaw1999-07-091-9/+20
| | | | | | be 0640. We'd like to restrict the permissions as much as possible, but group mailman must be able to read the file, or site-password override in the Web interfaces won't work.
* Use stat's symbolic names for list indices.bwarsaw1999-07-071-2/+3
|
* check_perms: No need to generate this file. MAILMAN_GRPNAME mustbwarsaw1999-07-061-3/+5
| | | | | | | always be `mailman' (from which we can automatically get the gid), and PREFIX is available in mm_cfg. .cvsignore, Makefile.in: undo administrivia
* check_perms.in: A file for a simple permission and group ownershipbwarsaw1999-07-061-0/+156
check over the Mailman installation. Not sure I got everything, but its a start. .cvsignore, Makefile.in: administrivia