Operating System - HP-UX
1819791 Members
3155 Online
109607 Solutions
New Discussion юеВ

execute permission denied on vim

 
SOLVED
Go to solution
Daniel Gowans
Advisor

execute permission denied on vim


I recently installed the latest version of VIM on my hp-ux box. However, I can't run it. I always get, even as root:

vim: execute permission denied

The permissions look good (755) and there is execute permission for each directory below it. It is installed in /usr/local/bin

What could be wrong? Strangely there are some links to it, one called view, that execute fine. They all link to it and execute it in different modes. Is it trying to use a forbidden swap space? Any ideas?

4 REPLIES 4
Jeff Schussele
Honored Contributor

Re: execute permission denied on vim

Hi Daniel,

One possibility is that it's an SUID program sitting in a NOSUID filesystem.

Run fsadm against the mount point & check the file for SUID bits.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
John Palmer
Honored Contributor

Re: execute permission denied on vim

It sounds as though vim isn't a valid executable. What do you get from:
file vim

It's also possible that it's a script with a bad value in the first line of the form:
#!

Regards,
John
melvyn burnard
Honored Contributor
Solution

Re: execute permission denied on vim

This sounds like you have a PARISC 2.0 executable loaded onto a PARISC 1.1 system
What Model and what OS are you using
what result do you get when you do :
file vim
what vim
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
David Bonham_1
Advisor

Re: execute permission denied on vim

I had the same problem. I found out that I downloaded and installed the wrong version.

I then downloaded the correct version (for 11 and 11i) from: http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,582,00.html It installed and works fine. Running: file vim on the first install showed vim as an ELF-32 format.