From 1379262ccb516d2a809caf3231fa478f3fbc3ffa Mon Sep 17 00:00:00 2001 From: Hanspeter Spalinger <hanspeter@spahan.ch> Date: Wed, 10 Aug 2016 09:50:17 +0200 Subject: [PATCH] add option to disable user lookup --- chkcrontab | 1 + 1 file changed, 1 insertion(+) diff --git a/chkcrontab b/chkcrontab index 7db27b1..0fe3299 100755 --- a/chkcrontab +++ b/chkcrontab @@ -37,6 +37,7 @@ def main(argv): parser = ArgumentParser(description="Parse crontab files and check each type of line for potential syntax errors.") parser.add_argument('crontab', help='the crontab file to parse') parser.add_argument('--whitelist','-w', action='append', dest='whitelisted_users', help='A user to ignore when warning of unrecognized users This argument may be passed multiple times.', default=None) + parser.add_argument('-n', '--no-check-passwd', action='store_false', dest='check_passwd', help='Disable user lookup') args = parser.parse_args() log = check.LogCounter() -- GitLab