AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Unable to add cron job

    Posted Thu July 26, 2007 10:22 PM

    Originally posted by: SystemAdmin


    Hi

    I am using aix 5.3, when i add the cron job, I get below msg.
    **
    crontab: 0481-109 You are not authorized to use the cron command.
    **

    The folder list as below:
    ***
    260 prw------- 1 root cron 0 Apr 05 17:27 FIFO
    65 -rw-r----- 1 bin cron 4 Jun 21 2004 at.deny
    389 -rw-r--r-- 1 bin cron 16 Jun 29 2007 cron.allow
    66 -rw-r----- 1 bin cron 3 Jun 21 2004 cron.deny
    67 -rw-rw-r-- 1 bin bin 1010065 May 05 10:00 log
    68 -rw-r--r-- 1 root sys 1317 Jun 17 2004 queuedefs
    ***

    I have remove root from deny list and add to allow list but still not work. pls help

    Thanks
    #AIX-Forum


  • 2.  Re: Unable to add cron job

    Posted Fri July 27, 2007 06:48 AM

    Originally posted by: nh4aix


    Hi there...

    you have to add root to the cron.allow file.

    Reference:
    If the cron.allow file exists, only users whose login names appear in it can use the crontab command. The root user's log name must appear in the cron.allow file if the file exists. A system administrator can explicitly stop a user from using the crontab command by listing the user's login name in the cron.deny file. If only the cron.deny file exists, any user whose name does not appear in the file can use the crontab command.
    http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.cmds/doc/aixcmds1/crontab.htm?resultof=%22%63%72%6f%6e%2e%64%65%6e%79%22%20

    Hope that helps...

    #AIX-Forum