[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crontab problems in 3.2



In message <F44rGW6Ex3AkwtsQztQ0000127a@hotmail.com>
	so spake "Jane Goodall" (j_goodall):

> After upgrading one of my servers to 3.2, normal users
> cannot change their crontab; I get a permission denied error when
> crontab probably tries to create a temporary file in /var/cron/tabs:

>From http://www.openbsd.org/faq/upgrade-minifaq.html#3.1.2

The crontab(1) and at(1) commands are no longer setuid root, they
are now setgid crontab.

Before you run "make build", you will need to add the crontab group.
Add a line like the following to your /etc/group file:

  crontab:*:66:

The "make build" will update some, but not all, permissions for
you. After "make build" finishes, you must run following by hand
(assumes /bin/csh):

    # chgrp crontab /var/at/at.{allow,deny} /var/cron/{allow,deny}
    # chmod 0640 /var/at/at.{allow,deny} /var/cron/{allow,deny}
    # foreach f ( /var/cron/tabs/* )
	set u=`basename $f`
	chown $u.crontab $f
    end

Note that you probably will not have all of the allow/deny files;
this is not a problem.

Since in this case you are not doing a make build you probably want
to run mtree by hand.  Assuming a 3.2 source tree:

    # cd /usr/src/etc
    # mtree -qdef mtree/4.4BSD.dist -p / -U

 - todd