
cron.allow
ほぼ3週間のダウンタイムで、私はファイルがcron.deny
どこにあるかを調べようとしました。Debian7解放する。いいえ、基本的にシステムにはないようです。
強化の目的で「ちょうど」私のシステムでこれらのファイルを使用できるようにします。私の質問は、実際にtouch
追加の設定なしで使用できるかどうかです。
root@asw-deb:~# touch /etc/cron.allow
root@asw-deb:~# touch /etc/cron.deny
または、このファイルを「マッピング」する必要がある場合は、cron設定ファイルを編集して、作成した2つのファイルを見つけることができる場所をcronに「通知」することもできます。
ちょっと愚かに聞こえたらすみません。
答え1
マニュアルからman 1 crontab
:
If the /etc/cron.allow file exists, then you must be listed (one user per line)
therein in order to be allowed to use this command. If the /etc/cron.allow file
does not exist but the /etc/cron.deny file does exist, then you must not be listed
in the /etc/cron.deny file in order to use this command.
If neither of these files exists, then depending on site-dependent configuration
parameters, only the super user will be allowed to use this command, or all users
will be able to use this command.
If both files exist then /etc/cron.allow takes precedence. Which means that
/etc/cron.deny is not considered and your user must be listed in /etc/cron.allow in
order to be able to use the crontab.
Regardless of the existance of any of these files, the root administrative user is
always allowed to setup a crontab. For standard Debian systems, all users may use
this command.
私はDebian 7でそれを試してみましたが、まったく同じように動作します。