cancel
Showing results for 
Search instead for 
Did you mean: 

crontab entry

madhudeepan
Frequent Advisor

crontab entry

i need to enable a cron tab entry for a particular user,,, how can i do it

home/oracle>crontab -l

crontab: you are not authorized to use cron. Sorry.

what i have to do for adding crontab entry and how to start it..
4 REPLIES
Slawomir Gora
Honored Contributor

Re: crontab entry

Hi,
you have to add user oracle to file:

/var/adm/cron/cron.allow
Sunny123_1
Esteemed Contributor

Re: crontab entry

Hi

See which file you have

/var/adm/cron/cron.allow or /var/adm/cron/cron.deny

if you have /var/adm/cron/cron.allow

then make an entry of user in this file.

Regards
Sunny
Steven E. Protter
Exalted Contributor

Re: crontab entry

Shalom,

http://docs.hp.com/en/B2355-90164/B2355-90164.pdf

Prerequisites for Using at and crontab
Before you can use crontab or at, your system administrator must set up
certain files that allow you permission to run these commands.
Two files, called at.allow and at.deny in /usr/lib/cron determine
whether you can use the at command. You can use it if your name is in
at.allow.
If at.allow does not exist, the system checks to see if your name is in
at.deny. If it is, you are denied access to the at command.
If neither at.allow nor at.deny exists, only those with superuser
privilege can use at. If only at.deny exists and it is empty, all users can
use at.
Permission to use crontab is determined in the same way except that
the files are called cron.allow and cron.deny.
Refer to the at(1) and crontab(1) man pages for more information.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Basheer_2
Trusted Contributor

Re: crontab entry

Follow Sunny and gora's steps.

then do
/sbin/init.d/cron stop
/sbin/init.d/cron start

check
ps -ef | grep -i cron and make sure cron is running.