Operating System - HP-UX
1833832 Members
2168 Online
110063 Solutions
New Discussion

ps execute permission denied

 
SOLVED
Go to solution
Dee_3
Regular Advisor

ps execute permission denied

10.01 HP-UX OS recently restored and now getting ps execute permission denied. Permissions look good compared to another system. /var/adm/ps_data permissions also looked fine. /dev also was good. /etc/passwd looked fine from what we could tell.
Any ideas what else this could be?
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: ps execute permission denied

One thing that is possible is that you are not running a compatible ps (i.e a 10.20 version). Also are you actually running /usr/bin/ps? Is there an earlier ps in your PATH? Finally, absolutely bizarre results can occur if you booted from another kenel and thus you are not running /stand/vmunix.
If it ain't broke, I can fix that.
Fred Ruffet
Honored Contributor

Re: ps execute permission denied

What is exact output for the error ?
You can also use "ldd /usr/bin/ps" to determine what are the used libs. Then verify permissions on those libs (libc.2 and libdld.2 on a system here).

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Robert-Jan Goossens
Honored Contributor

Re: ps execute permission denied

Hi,

Could you check the permissions of the ps command

# which ps
/usr/bin/ps
# ll /usr/bin/ps
-r-xr-xr-x 1 bin sys 40960 Apr 29 1999 /usr/bin/ps
# what /usr/bin/ps
/usr/bin/ps:
ps.c $Revision: 82.1.1.2 $ $Date: 99/04/29 00:13:07 $
PATCH_11_00: ps.o 99/04/29


If the permissions are OK, try to remove the /var/adm/ps_data file, it will be recreated with a ps command.

Hope this helps,
Robert-Jan
Dee_3
Regular Advisor

Re: ps execute permission denied

Thanks to all. found we had a bad primary disk with unhappy kernel.
Will rebuild and see how we stand.