1833327 Members
3154 Online
110051 Solutions
New Discussion

CRON

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

CRON

could see some jobs that a user is running using cron, there is a file by userid under crontabs directory, I want to stop them. i did su to that user, crontab -e says u are not allowed to use cron command. Why ?.

kaps
Nothing is impossible
11 REPLIES 11
Animesh Chakraborty
Honored Contributor

Re: CRON

Hi Kapil,
What about /var/adm/cron/cron.allow file ?is that user name included there ?
Did you take a backup?
KapilRaj
Honored Contributor

Re: CRON

he is neither present i cron.allow /deny

kaps
Nothing is impossible
Animesh Chakraborty
Honored Contributor

Re: CRON

Hi,
Then you must put an entry in crown.all file to be able use crontab.

How do u confirm that the user is "actually" using cron ?
Did you take a backup?
KapilRaj
Honored Contributor

Re: CRON

could manually see a job. ie it is updating a file.

Do u mean to say that by-default all the users are restricted to use cron.
Nothing is impossible
Animesh Chakraborty
Honored Contributor
Solution

Re: CRON

Yes except root.
Did you take a backup?
Darrell Allen
Honored Contributor

Re: CRON

Hi kaps,

/var/adm/cron/log should list the jobs that are submitted via crontab files. Do you see jobs in /var/adm/cron/log from that user's crontab?

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Ray Brewer
Valued Contributor

Re: CRON

Have you checked to see if the user is using the "at" or "batch" command? These commands use the cron daemon to run and the same log file as cron.
Ariel Bourda
Occasional Advisor

Re: CRON

Hi,
Check if your user is in cron.allow
by
Tom Maloy
Respected Contributor

Re: CRON

It is quite possible that the jobs were set up to run under that user's cron, and THEN the user's permission to enter cron jobs was removed. So the cron jobs would still run, owned by that user, but that user could no longer modify the running jobs.

One way to keep users from running too many cron jobs. Just a thought...

Tom
Carpe diem!
MANOJ SRIVASTAVA
Honored Contributor

Re: CRON

If the user is not allowded than it is being run by root , doing a su to that user , amy be you can check the crontab for the root ?



Manoj Srivastava
KapilRaj
Honored Contributor

Re: CRON

thanks lot
Nothing is impossible