Operating System - HP-UX
1833784 Members
4555 Online
110063 Solutions
New Discussion

Quick question on an execute permission

 
SOLVED
Go to solution
phil cook
Frequent Advisor

Quick question on an execute permission

Hi - I'm having a real problem making a particular file execute, not seen anything quite like it. Any ideas.

bmhp47:/bv6/opt/bv1to1/bin # ll xbvconf
-rwxr-xr-x 1 root bin 897480 Jun 21 04:06 xbvconf
bmhp47:/bv6/opt/bv1to1/bin # ./xbvconf
sh: ./xbvconf: Execute permission denied.
bmhp47:/bv6/opt/bv1to1/bin # file xbvconf
xbvconf: PA-RISC2.0 shared executable dynamically linked -not stripped
bmhp47:/bv6/opt/bv1to1/bin #

I'm a bit lost as to why it would do this?

Rgds

Phil C
Do I have to?
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor

Re: Quick question on an execute permission

Certain permissions are hardcoded in the code itself. So even if you have the permissions explicitly set on the file, you can't really execute it.

For ex.,/sbin/umount. Everyone has x permission on it but only root can execute it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
phil cook
Frequent Advisor

Re: Quick question on an execute permission

But I'm trying to run this command as root?
Do I have to?
Sridhar Bhaskarla
Honored Contributor

Re: Quick question on an execute permission

May be root is not supposed to run this file?.. What is this software?. Do you have
any security softwares like SEOS, ETrust installed on your system?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
phil cook
Frequent Advisor

Re: Quick question on an execute permission

This is BroadVision I'm afraid. I see what you mean though, perhaps I should try to run from one of the application users.
Do I have to?
linuxfan
Honored Contributor

Re: Quick question on an execute permission

Hi Phil,

Not sure whats the application you are trying to run, but what Sri is trying to tell is sometimes even if you give the right permissions to a file, especially in the cases of executables, you may have conditions wherein you are preventing certain users to execute the command.

For example /usr/sbin/umount
even if you have the permissions as 755, when a normal user executes "/usr/sbin/umount /opt" it fails because the executable is doing an internal checking preventing the user from unmountinga filesystem.

In some other cases there may be executables which are called from within other executables and cannot be run by themselves.

In your case maybe the root isn't allowed to run this executable.

what is the application? did you try executing it as a regular user?

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
melvyn burnard
Honored Contributor
Solution

Re: Quick question on an execute permission

I am going to ask what seems a silly question here:
what model system are you running this on?
If the machine is NOT a PARISC 2.0 machine, you will get this error. i.e. the executable was compiled on a PARISC2.0 system, but you are trying to run it on a PARISC1.x system.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Madhu Sudhan_1
Respected Contributor

Re: Quick question on an execute permission

Hi Phil!

As the file command output says it is dynamically linked. So, how did you install this software. Did you installed it or copied it. My guess is this xbvconf file is trying to look for one the library file for which there is no permission and on to the screen it just reporting the execute permission denied for xbvconf instead of reporting that it doesn't have execute permission for the library which it is trying to use.

Thanks,
Madhu
Think Positive
phil cook
Frequent Advisor

Re: Quick question on an execute permission

Thanks everyone for your help. The problem here is that this application software has been compiled for a PA RISC 2.0 processor, & we're trying to run it on a A class. We'll have to source another install set from the software supplier.

Many thanks
Do I have to?