Ubuntu 14.04
我不明白在为服务(没有登录)帐户(名为curator)设置crontab时所看到的行为。
当我以root身份登录时,我得到的是:
# crontab -u curator -l
The user curator cannot use this program (crontab)
但是,当我切换到用户帐户时,它工作得很好:
# su -s /bin/bash curator
curator@host$ crontab -l
no crontab for curator
系统上有一个空的/etc/cron.allow文件而没有/etc/cron.deny文件。根据man
我正在维护我的(每个用户)在git中的cron文件,并且更愿意将它们安装在它们的位置。我知道cron更喜欢用crontab -e手工编辑文件(讨厌)。这对我的部署过程一点都不方便,我更愿意将文件放在它的位置,并拥有适当的所有权:
-rw------- 1 postgres crontab 242 Jan 8 08:38 /var/spool/cron/crontabs/postgres
直接阅读该文件并不能给我信心,我甚至不能尝试:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.wksCRO/