1753469 Members
4899 Online
108794 Solutions
New Discussion юеВ

Re: crontab

 
SOLVED
Go to solution
Paul Bertino
Frequent Advisor

crontab

I have setupa user in cron.allow and there is nor cron.deny. Still not auth to use crontab -e
14 REPLIES 14
James R. Ferguson
Acclaimed Contributor

Re: crontab

Hi Paul:

What error do you get when you do this?

Doing 'crontab -e' invokes an editor ('vi') against a temporary file in '/var/tmp' to build your crontab file if there is none to edit.

Regards!

...JRF...
Paul Bertino
Frequent Advisor

Re: crontab

crontab: you are not authorized to use cron. Sorry.
test01@hellcat:/home/test01>

rleon
Regular Advisor

Re: crontab

to user id has to be in /var/adm/cron/cron.allow
Paul Bertino
Frequent Advisor

Re: crontab

The user id is in the cron.allow.
Dennis Handly
Acclaimed Contributor

Re: crontab

>The user id is in the cron.allow.

I tried adding trailing spaces and crontab still worked.
We would need to see more info:
id
vis /var/adm/cron/cron.allow
Robert-Jan Goossens_1
Honored Contributor

Re: crontab

try bouncing the cron daemon.

# /sbin/init.d/cron stop
# /sbin/init.d/cron start

# su - test01
# crontab -e

Regards,
Robert-Jan
Jeff_Traigle
Honored Contributor

Re: crontab

Also make sure the permissions on /usr/bin/crontab have not been altered. I've run into this error on SLES 10 when Bastille removed world read and execute.

-r-sr-xr-x 1 root bin 79468 Feb 15 2007 /usr/bin/crontab
--
Jeff Traigle
Paul Bertino
Frequent Advisor

Re: crontab

Thanks for your help. I still have the issue and I have tried everything you all have suggested.
T G Manikandan
Honored Contributor

Re: crontab

You say you dont have cron.deny file, Can you also remove cron.allow file and try.

Thanks.