Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Security on shared memory & semaphores

Status
Not open for further replies.

rzs0502

IS-IT--Management
Nov 18, 2002
708
Hi,

I've been trying to find out how to change the MODE on IPC's on AIX.
eg.
ipcs -s
IPC status from /dev/mem as of Fri Jan 14 13:43:16 USAST 2005
T ID KEY MODE OWNER GROUP
Shared Memory:
m 0 0x0d001675 --rw-rw-rw- root system
m 1 0xe4663d62 --rw-rw-rw- imnadm imnadm
m 2 0x9308e451 --rw-rw-rw- imnadm imnadm
m 3 0x52e74b4f --rw-rw-rw- imnadm imnadm

I want to remove the world rw on these.

Thanks!


"If you always do what you've always done, you will always be where you've always been."
 
void *shmat(int shmid, void *shmaddr, int shmflg);

key_t key;
int shmid;
char *data;

key = ftok("/home/beej/somefile3", 'R');
shmid = shmget(key, 1024, 0644 | IPC_CREAT);
data = shmat(shmid, (void *)0, 0);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top