The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSH (wget) for client

Discussion in 'General Discussion' started by EgyExtra4host, Feb 22, 2011.

  1. EgyExtra4host

    EgyExtra4host Registered

    Joined:
    Feb 22, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Egypt - Cairo
    hello everybody

    i just wanna to know something,

    how to make my clients can wget command from SSH
    it's said : -bash: /usr/bin/wget: Permission denied

    Regards,
    Morkos​
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    What are the permissions on /usr/bin/wget?

    Code:
    # which wget
    /usr/bin/wget
    # ls -alh /usr/bin/wget 
    -rwxr-xr-x 1 root root 239K Nov  3  2009 /usr/bin/wget*
    Note that the permissions on /usr/bin/wget should be 755 by default, so by default users other than root should be able to use wget. If they are not, a custom change has been made, either by you or by someone else who has, or had, root access to the server. To change the permissions on the wget file back to the default, use the chmod command:

    Code:
    # chmod 755 /usr/bin/wget
    This will give root read, write and execute permissions, group read and execute permissions, and everybody else read and execute permissions.

    You may find the following Linux permissions tutorials to be helpful:

    Understanding File Permissions
    Linux Knowledge Base and Tutorial
    Tutorial for chmod
     
Loading...

Share This Page