EgyExtra4host

Registered
Feb 22, 2011
2
0
51
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​
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
25
143
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