Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 15 of 15
  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    13

    Default Cron not saving

    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?

  2. #2
    Member
    Join Date
    May 2006
    Posts
    59

    Default 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

  3. #3
    Member
    Join Date
    May 2003
    Location
    Tiznit (Morocco)
    Posts
    178

    Default

    Use crontab -e it's ggod for customer that kwon use shell.

    But the porblem it's:


    Cpanel on version

    WHM 10.8.0 cPanel 10.9.0-R95
    Fedora i686 - WHM X v3.1.0

    Don't save cron fater user write on his panel.

    There a problem.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    3

    Default

    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.

  5. #5
    Member
    Join Date
    Jun 2005
    Posts
    27

    Default

    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.

  6. #6
    Member
    Join Date
    Sep 2006
    Posts
    13

    Default

    Quote Originally Posted by feanorknd View Post
    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.
    Quote Originally Posted by AMD64 View Post
    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.

  7. #7
    Member
    Join Date
    Mar 2006
    Posts
    21

    Default

    Horray solved it for me to

  8. #8
    Member
    Join Date
    Jul 2004
    Posts
    182

    Default

    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 by jack01; 02-05-2007 at 06:32 AM.

  9. #9
    Member
    Join Date
    Apr 2004
    Posts
    84

    Default hmm

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

  10. #10
    Member
    Join Date
    Apr 2004
    Posts
    84

    Default :-)

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

    export EDITOR=nano

  11. #11
    Member
    Join Date
    Feb 2004
    Posts
    49

    Default

    Change also the permissions for all files in /var/spool/cron

  12. #12
    Registered User
    Join Date
    May 2007
    Posts
    1

    Default Great

    Quote Originally Posted by Imago View Post
    Change also the permissions for all files in /var/spool/cron
    It worked for me
    Thanks!

  13. #13
    Member
    Join Date
    Feb 2005
    Posts
    219

    Default

    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?

  14. #14
    Member
    Join Date
    Feb 2005
    Posts
    219

    Default

    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.

  15. #15
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by shacker23 View Post
    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.
    For the record, the last update was released on August 15-16.

Similar Threads & Tags
Similar threads

  1. Cron jobs not saving on new dedicated server
    By Patty_J in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-17-2007, 08:53 AM
  2. User cronjobs not saving in /var/spool/cron
    By AMD64 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-29-2007, 03:35 AM
  3. Cron Jobs Not Saving
    By Millar in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-29-2006, 01:14 PM
  4. Cron jobs not saving
    By Boss Hog in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-27-2006, 06:20 AM
  5. Cron not saving for one account
    By kistler in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-08-2006, 06:45 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube