icehosting

Well-Known Member
Dec 22, 2002
60
0
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
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
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.
 

icehosting

Well-Known Member
Dec 22, 2002
60
0
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
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
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.