From c3fa034b7e1d7429dcc31458bcc9ad4d822744f8 Mon Sep 17 00:00:00 2001 From: millert <> Date: Thu, 9 May 2002 21:22:01 +0000 Subject: [PATCH] crontab is no longer setuid root, it is now setgid crontab. These changes were modelled after the Owl version of vixie-cron, but developed independently. Our crontab used to send cron SIGUSR1 to tell cron to reread the spool dir. Now that crontab is not setuid root this doesn't work. Instead, crontab pokes cron via a Unix domain socket located in the tabs dir. Please note, after these changes, the owner on user crontab files will have to be changed manually from root to the uid of the corresponding user for crontab to be usable. cron itself will accept tab files owned by either root or the user. Also, any /var/cron/{allow,deny} files must be readable by group crontab. --- src/etc/mtree/4.4BSD.dist | 4 ++-- src/etc/mtree/special | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/etc/mtree/4.4BSD.dist b/src/etc/mtree/4.4BSD.dist index 97cfbc3b..39737099 100644 --- a/src/etc/mtree/4.4BSD.dist +++ b/src/etc/mtree/4.4BSD.dist @@ -1,4 +1,4 @@ -# $OpenBSD: 4.4BSD.dist,v 1.123 2002/04/24 22:19:19 espie Exp $ +# $OpenBSD: 4.4BSD.dist,v 1.124 2002/05/09 21:22:01 millert Exp $ /set type=dir uname=root gname=wheel mode=0755 # . @@ -1871,7 +1871,7 @@ crash mode=770 cron mode=0555 # ./var/cron/tabs -tabs mode=0700 +tabs gname=crontab mode=1730 # ./var/cron/tabs .. diff --git a/src/etc/mtree/special b/src/etc/mtree/special index a29d4863..ac49d57d 100644 --- a/src/etc/mtree/special +++ b/src/etc/mtree/special @@ -1,4 +1,4 @@ -# $OpenBSD: special,v 1.40 2002/02/13 04:53:54 marc Exp $ +# $OpenBSD: special,v 1.41 2002/05/09 21:22:01 millert Exp $ # $NetBSD: special,v 1.4 1996/05/08 21:30:18 pk Exp $ # @(#)special 8.2 (Berkeley) 1/23/94 # @@ -142,7 +142,7 @@ backups type=dir mode=0700 uname=root gname=wheel ignore .. #var/backups cron type=dir mode=0555 uname=root gname=wheel log type=file mode=0600 uname=root gname=wheel -tabs type=dir mode=0700 uname=root gname=wheel ignore +tabs type=dir mode=1730 uname=root gname=crontab ignore .. #var/cron/tabs .. #var/cron db type=dir mode=0755 uname=root gname=wheel