Re: onstat: Shared memory: permission denied.
Posted in 1998
In article <357856A7.7FA762C0@garpac.com>, Jacob Salomon
<jake@garpac.com> writes
>INFORMIX-OnLine Version 7.12.UC1
>AIX ***** 1 4 ***********
>
>Hi Family.
>
>I have run into an anomaly on an AIX machine. Normally, even as a
>vanilla user, I can run onstat commands and even get a limted menu
>onmonitor.
>
>On this system, onstat earns me the above message. If I try to run
>onmonitor, I get:
>
>Unable to attach to shared memory.
>Permission denied
>
>YARGHHHhhhh!!
>What could possible be causing this grief? I have compared the ipcs -m
>output on another AIX system:
>
>Where I have no problem:
>m 36865 0x52574801 --rw-rw---- root informix
>m 36866 0x52574802 --rw-rw---- root informix
>m 16387 0x52574803 --rw-rw-rw- root informix
>m 8196 0x52574804 --rw-rw---- root informix
>m 4102 0x52574805 --rw-rw---- root informix
>m 7 0x52574806 --rw-rw---- root informix
^^^^^
>
>And on the system where I can't do it:
>m 20481 0x52574801 --rw-rw---- informix informix
>m 20482 0x52574802 --rw-rw---- informix informix
>m 4101 0x52574803 --rw-rw-rw- informix informix
^^^^^^^^^
A difference... check the permissions on oninit and onstat...
perhaps onstat is missing the setuid-bit.
Heck, I'd check all the permissions on Informix executables..
>
>No significant difference I can see.
>
>So wazzamatta?
>
>Thanks.
--
David Williams
Maintainer of the Informix FAQ
Primary site (Beta Version) http://www.smooth1.demon.co.uk
Official site http://www.iiug.org/techinfo/faq/faq_top.html
I see you standin', Standin' on your own, It's such a lonely place for you, For
you to be If you need a shoulder, Or if you need a friend, I'll be here
standing, Until the bitter end...
So don't chastise me Or think I, I mean you harm...
All I ever wanted Was for you To know that I care