Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Disable wget

Discussion in 'General Discussion' started by icehosting, Jan 26, 2003.

  1. icehosting

    icehosting Well-Known Member

    Joined:
    Dec 22, 2002
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    156
    Hello,
    i have one cpanel server.
    I want to disable wget and some other programs in the SSH (in virtual accounts).
    Can everyone inform me how i can do this?
    Thanks,
    Christos
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    The easiest way is to change the permissions on wget

    cd /usr/bin
    chmod 750 wget

    This will make it that only root can run it.

    Be careful doing this to other files as you could lock yourself out of files.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. icehosting

    icehosting Well-Known Member

    Joined:
    Dec 22, 2002
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    156
    Thanks for your reply.
    I do this,
    also do you know where i can see what commands is accepted in my users SSH and how i can change this?
    Regards,
    Christos
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Any file that has world read on it can be accessed through SSH. Unfortunatly there is no cut-n-dry to disabling commands under SSH.

    If you search through this forum you will find many discussions and opinions on what to do with or about SSH.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice