Skip to main content

wget cron does not work as username

Comments

10 comments

  • Eric
    Could we get a peak at crontab -l for the user?
    0
  • icandoit
    Please speak English :-D
    0
  • icandoit
    I did not understand do you want the contents of cron? it has never changed for the last 5 years, I was in centos 5 recently moved to centos 6 and the same cron works if I put it in main cron but not as user
    0
  • cPanelMichael
    Are you using Cloud Linux with CageFS enabled? The command suggested in the previous post may help us troubleshoot the issue:
    crontab -l
    Run this command while logged in as the account username via SSH. Thank you.
    0
  • icandoit
    I do not use cloudlinux or the other one Here we go user@domain.com [~]# crontab -l SHELL="/usr/local/cpanel/bin/jailshell" 0 13,20 * * * /bin/sh /home/user/backups/backup1.sh 45 7 15 * * /bin/sh /home/user/backups/backup2.sh */4 * * * * wget -O /dev/null --no-check-certificate
    0
  • cPanelMichael
    Can you run the command successfully when logged in as the account username via SSH? What are the permissions and ownership values on the /usr/bin/wget file? Thank you.
    0
  • icandoit
    Hi Thanks for your reply. The permission is 700 and the ownership is root
    0
  • cPanelMichael
    The default permissions for /usr/bin/wget are 0755. Does updating the permissions on this file to 0755 make a difference? Thank you.
    0
  • icandoit
    Thanks such a simple issue. Resolved but what I do not understand in a brand new server and installation what possibly changed that permission to 700? I use csf and I was making some changes as suggested in csf however not sure any of the changes I made could possibly affect the wget permission .
    0
  • cPanelMichael
    Resolved but what I do not understand in a brand new server and installation what possibly changed that permission to 700?

    It's possibly a default permission depending on your operating system environment and any security settings/applications (e.g. SELinux) you have configured. Thank you.
    0

Please sign in to leave a comment.