Solaris のシステム管理 (第 2 巻)

crontab へのアクセスを拒否する方法

  1. スーパーユーザーになります。

  2. /etc/cron.d/cron.deny ファイルを編集し、crontab コマンドを使用させないユーザー名を次のように 1 行に 1 つずつ追加します。


    daemon
    bin
    smtp
    nuucp
    listen
    nobody
    noaccess
    username1
    username2
    username3
    .
    .
    .
  3. /etc/cron.d/cron.deny ファイルを確認します。


    # cat /etc/cron.d/cron.deny