We have had clients using this from ssh for sometime. However today it stopped working this is a example.
for example:
bash-2.05a$ pwd
/home/user/www/dirname
bash-2.05a$ vi index.php
bash: /usr/bin/vim: Permission denied
bash-2.05a$
Any ideas why this would start happening? We have only upgraded to cpanel 7.0 build 14, build 8 working fine.
dallassmith
06-23-2003, 04:38 PM
Something like this happened to me w/cpanel before also I never got it fixed. Luckily I just switched service and it worked.. sorry dont know how to fix it myself just thought i would tell ya ive had the same problem before.
Lagniappe-labgeek
06-23-2003, 06:09 PM
what are the permissions on the file? Owner/group set right?
Directory is set for 755 and the file index.php is set for 644. owner and group or set the same on this users account for all dir and files 32067 522
vim is set for owner 0 group 0 chmod 700
jundy
06-23-2003, 06:51 PM
That's your probelm. 700 give read, write, and execute permissions only to the owner of the file.
Change it to 755:
chmod 755 /usr/bin/vim
That way every one can execute it
Yes I should have posted with different wording. I knew I could chmod it 755 but,
Why would the permissions change from 755 to 700? We did not make this change. Do you think the cpanel update would have changed permissions on this file?
Any risks setting this to 755?
jundy
06-24-2003, 10:35 AM
I can't think why a CPanel update would do that but if it did the CPanel people will fix that issue soon enough. If that didn't do it then maybe another script you installed or some person. Sorry but not much help there.
There is no risk - that I can think of - by changing it to 755.