diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-09 21:22:02 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-05-09 21:22:02 +0000 |
commit | 124d0347b10f2c64912889fab1379f308b796911 (patch) | |
tree | 1f009cb40f170648cc70571d89992e375b0fbf94 /etc/mtree | |
parent | 0fcf09b27f6901580349da84181cdf8f92d74a8c (diff) |
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.
Diffstat (limited to 'etc/mtree')
-rw-r--r-- | etc/mtree/4.4BSD.dist | 4 | ||||
-rw-r--r-- | etc/mtree/special | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/mtree/4.4BSD.dist b/etc/mtree/4.4BSD.dist index 97cfbc3b372..39737099263 100644 --- a/etc/mtree/4.4BSD.dist +++ b/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/etc/mtree/special b/etc/mtree/special index a29d4863909..ac49d57db86 100644 --- a/etc/mtree/special +++ b/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 |