mcyates

Member
Sep 30, 2006
13
0
151
I want to run this cron:

/home/myfootba/backupsmanager.cgi --db=0 --old=15 --pack --ftp

but its not saving it or doing it. What can i do?
 

nwilkens

Well-Known Member
May 4, 2006
59
0
156
Monroe MI
cPanel Access Level
DataCenter Provider
Cron

A bit more information please.

Have you added this entry to your crontab? If so for what user? Can you show me the exact crontab entry?

A typical crontab entry looks like:

0 5 * * * /usr/bin/command -o option

to run command at 5 am.

Crontab can be mainted via 'crontab -e', and displayed via 'crontab -l'.

If you have made the proper entries, check to see if crond is running. 'ps -ef|grep crond'

You may also want to look at: # man 5 crontab

Hope this helps
Nick
 

feanorknd

Member
Sep 28, 2005
21
1
153
Ok... for the problem of users saving or viewing their own cronjobs through cpanel, you can try this....

Try before executing as root:

chmod a+s /usr/bin/crontab

Giving permissions to execute crontab to others, problem saving cronjobs and watching them later worked at least for me.

;) Good luck.
 

AMD64

Active Member
Jun 19, 2005
27
0
151
Had the same problem today with this on a new cpanel install on Fedora 5

Code:
chmod a+s /usr/bin/crontab
This fixed the issue, thank you feanorknd.
 

mcyates

Member
Sep 30, 2006
13
0
151
Ok... for the problem of users saving or viewing their own cronjobs through cpanel, you can try this....

Try before executing as root:

chmod a+s /usr/bin/crontab

Giving permissions to execute crontab to others, problem saving cronjobs and watching them later worked at least for me.

;) Good luck.
Had the same problem today with this on a new cpanel install on Fedora 5

Code:
chmod a+s /usr/bin/crontab
This fixed the issue, thank you feanorknd.
Thanks guys this DOES work, i fixed it a couple of days ago but i forgot to post in here.

Thanks,

I just need my bandwidth sorted now.
 

jack01

Well-Known Member
Jul 21, 2004
200
0
166
I had the problem, however I am wondering about a couple of things:

1) Is this a bug in cpanel or a security feature?

2) Do any of the more savvy experts here care to advise on the exact security implications of chmod a+s /usr/bin/crontab ?

Many thanks in advance for any useful information offered.
 
Last edited:

psychodreams

Well-Known Member
Apr 14, 2004
84
0
156
hmm

Im haveing issues too doesnt control x suppose to save after editing
Its not doing anything
or did something change
 

psychodreams

Well-Known Member
Apr 14, 2004
84
0
156
:)

Nevermind it was defaulted to vi which Im no used to just converted to nano with the following command

export EDITOR=nano
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
Hmm... These fixes aren't working for me. If, as root, I run:

Code:
crontab -u username -l
I can see a user's cron jobs. But if I log in as that user and run

Code:
crontab -l
I get:

Code:
no crontab for username
I've run as root:

Code:
chmod a+s /usr/bin/crontab
chmod a+s /var/spool/cron/*
But the problem persists. Ideas?
 

shacker23

Well-Known Member
Feb 20, 2005
263
1
168
Weird - this problem fixed itself in the past 24 hours. Maybe the result of some script run in the nightly update? Anyway, all is well with user crontabs again.