* Allow users to create crontabs by default.
svn path=/nixos/trunk/; revision=14861
This commit is contained in:
parent
46d69d9170
commit
80f0683a77
@ -88,6 +88,16 @@ in
|
|||||||
# Needed to interpret times in the local timezone.
|
# Needed to interpret times in the local timezone.
|
||||||
env TZ=${config.time.timeZone}
|
env TZ=${config.time.timeZone}
|
||||||
|
|
||||||
|
start script
|
||||||
|
mkdir -m 710 -p /var/cron
|
||||||
|
|
||||||
|
# By default, allow all users to create a crontab. This
|
||||||
|
# is denoted by the existence of an empty cron.deny file.
|
||||||
|
if ! test -e /var/cron/cron.allow -o -e /var/cron/cron.deny; then
|
||||||
|
touch /var/cron/cron.deny
|
||||||
|
fi
|
||||||
|
end script
|
||||||
|
|
||||||
respawn ${pkgs.cron}/sbin/cron -n
|
respawn ${pkgs.cron}/sbin/cron -n
|
||||||
'';
|
'';
|
||||||
}];
|
}];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user