Browse Source

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.
OPENBSD_3_2
millert 22 years ago
parent
commit
c3fa034b7e
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/etc/mtree/4.4BSD.dist
  2. +2
    -2
      src/etc/mtree/special

+ 2
- 2
src/etc/mtree/4.4BSD.dist View File

@ -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 /set type=dir uname=root gname=wheel mode=0755
# . # .
@ -1871,7 +1871,7 @@ crash mode=770
cron mode=0555 cron mode=0555
# ./var/cron/tabs # ./var/cron/tabs
tabs mode=0700
tabs gname=crontab mode=1730
# ./var/cron/tabs # ./var/cron/tabs
.. ..


+ 2
- 2
src/etc/mtree/special View File

@ -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 $ # $NetBSD: special,v 1.4 1996/05/08 21:30:18 pk Exp $
# @(#)special 8.2 (Berkeley) 1/23/94 # @(#)special 8.2 (Berkeley) 1/23/94
# #
@ -142,7 +142,7 @@ backups type=dir mode=0700 uname=root gname=wheel ignore
.. #var/backups .. #var/backups
cron type=dir mode=0555 uname=root gname=wheel cron type=dir mode=0555 uname=root gname=wheel
log type=file mode=0600 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/tabs
.. #var/cron .. #var/cron
db type=dir mode=0755 uname=root gname=wheel db type=dir mode=0755 uname=root gname=wheel


Loading…
Cancel
Save