Operating System - HP-UX
1834497 Members
2669 Online
110067 Solutions
New Discussion

Re: ipcs message queues semaphores shared memory

 
INCS Dept.
Frequent Advisor

ipcs message queues semaphores shared memory


Hi,

Currently I'm looking at the rights regarding the output of several ipcs commands. I wonder: is there a way to control the permissions ?

Bye.

By the way, has anyone some decent document about MQ's, shared mem. and semaphores ?
1 REPLY 1
Dietmar Konermann
Honored Contributor

Re: ipcs message queues semaphores shared memory

If I got you right you want to change the permissions of shmem, msgq and semaphores?

It's quite straigt-forward.

shmem: with shmctl(2), IPC_SET
msgq: with msgctl(2), IPC_SET
sem: with semctl(2), IPC_SET

See the man pages for details.

The standard reference is IMHO:

Stevens:
Advanced programming in the UNIX environment.


Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)