System Administration Guide: Advanced Administration

ProcedureHow to Deny Access to the at Command

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Edit the /etc/cron.d/at.deny file and add the names of users, one user name per line, that will be prevented from using the at commands.


    daemon
    bin
    smtp
    nuucp
    listen
    nobody
    noaccess
    username1
    username2
    username3
    .
    .
    .

Example 8–10 Denying at Access

The following example shows an at.deny file that has been edited so that the users smith and jones cannot access the at command.


$ cat at.deny
daemon
bin
smtp
nuucp
listen
nobody
noaccess
jones
smith