Operating System - HP-UX
1848700 Members
7368 Online
104036 Solutions
New Discussion

sudo getting error Execute permission denied

 
Steven_181
Advisor

sudo getting error Execute permission denied

I have installed the SUDO package from HP sudo-1.6.8p9-hppa-11.11.depot on our 32-bit HP11.11 machine.

When I tried to run /usr/local/sbin/visudo I get the following error " Execute permission denied".

I then tried to vi /etc/sudoers and add the root user into it. Then I tried running /usr/local/bin/sudo and I also get the message " Execute permission denied".

Anyone have any ideas?
8 REPLIES 8
Rajeev  Shukla
Honored Contributor

Re: sudo getting error Execute permission denied

what are the permissions on the file /usr/local/sbin/visudo and /usr/local/bin/sudo and also whats the syntax you are using in /etc/sudoers file
Steven_181
Advisor

Re: sudo getting error Execute permission denied

The permission for visudo and sudo are as follows

-rwxrwxrwx 1 root sys 90112 Jul 12 05:33 visudo

-rwxrwxrwx 1 root sys 90112 Jul 12 05:33 sudo

i use the command /visudo -f /etc/sudoers
Rajeev  Shukla
Honored Contributor

Re: sudo getting error Execute permission denied

change the permission and ownership of both the files as below below
-r-sr-sr-t 1 root root 102400 Jan 26 2000 sudo
---x--x--x 1 root root 73728 Jan 26 2000 /opt/sudo/sbin/visudo

Hopefully that should fix the problem

Cheers
Rajeev
Steven_181
Advisor

Re: sudo getting error Execute permission denied

so far there is no such /opt/sudo/sbin/visudo file found or the directory /opt/sudo exist in my system.
LiPEnS
Valued Contributor

Re: sudo getting error Execute permission denied

Post the results:

# file /usr/local/sbin/sudo
and
# model

If results of "file /usr/local/sbin/sudo" is "/usr/local/bin/sudo: ELF-32 executable object file - IA64" and machine is PA-RISC - remember that Itanium machines CAN run PA-RISC apps, BUT PA-RISC machines CAN NOT run Itanium apps.
Rajeev  Shukla
Honored Contributor

Re: sudo getting error Execute permission denied

What i am talking about is the permission of the files not their location.

Please change the permission of those 2 files whereever they are in your installation

Steven_181
Advisor

Re: sudo getting error Execute permission denied

I have put the right authorization for
---x--x--x 1 root root 90112 Jul 12 05:33 visudo

-rwsrwsrwt 2 root root 122880 Jul 12 05:33 sudo

but I still get the error "visudo: Execute permission denied" and "sudo: Execute permission denied"

Both files are compile into PA-RISC2.0:
visudo: PA-RISC2.0 shared executable dynamically linked
sudo: PA-RISC2.0 shared executable dynamically linked



Steven_181
Advisor

Re: sudo getting error Execute permission denied

Oops sorry...
I am running on model 9000/803/D320 with HP11.11 installed.