Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member capoinfra's Avatar
    Join Date
    Oct 2007
    Location
    Uruguay
    Posts
    82

    Default /bin/sh: /usr/bin/wget: Permission denied

    Hello,

    I can not execute a cron with wget over a php file...

    The /usr/bin/wget binary has 755 permissions.

    But, I created a cron job from cpanel, for example: wget -q -O /dev/null http://www.mydomain.com/empty.php and receive e-mails with the message:

    /bin/sh: /usr/bin/wget: Permission denied

    The script is empty, just for test this problem.

    I don't understand why can't run wget with cron.

    Any Idea?

    Thanks in advance!

  2. #2
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    What user is the script runing as?
    Are you running SELinux?
    What are the perms on /usr/sbin and /usr, and ownerships?
    White Dog Green Frog - web hosting and web development since 2002
    Blogs: SMB web use cPanel/WHM scripts

  3. #3
    Member capoinfra's Avatar
    Join Date
    Oct 2007
    Location
    Uruguay
    Posts
    82

    Default

    brianoz,

    Thank you for your interest.

    I request cPanel official support and the problem is solved now.

    Was caused for insufficient permissions over wget binary.

    Thank you!

  4. #4
    Member
    Join Date
    Sep 2005
    Posts
    15

    Thumbs up

    To get it resolved you need to follow the given steps :

    Login to server with root

    check the path of wget with command

    #which wget

    #chown root.get-users /usr/bin/wget

    #usermod -g get-users username

    #chmod 750 /usr/bin/wget

    you can verify it with

    #grep username /etc/group

Similar Threads & Tags
Similar threads

  1. fixeverything, /bin/pwd: failed to stat `.': Permission denied
    By fedlerner in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-07-2008, 12:48 PM
  2. /bin/pwd: failed to stat `.': Permission denied
    By speckados in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 01-30-2008, 02:25 PM
  3. Replies: 0
    Last Post: 02-26-2007, 04:19 PM
  4. /bin/su: Permission denied
    By mikailyuksel in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-08-2006, 12:55 PM
  5. /bin/ls: .: Permission denied error for shell
    By dom182 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-26-2004, 09:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube