Posted: Fri Mar 21, 2003 12:53 pm Post subject: Interprocess elements that could not be deleted
Newbie
Joined: 17 Mar 2003 Posts: 3 Location: Aachen, Germany
Hi,
I've a problem: After stopping the qeue manager I want to kill the interprocess elements by performing a
ipcrm -$type $ID
The command ipcs | grep mqm shows the following result:
m 1 0x400c361b --rw-rw-rw- root mqm
s 0 0x000c361b --ra-ra-ra- root mqm
s 1 0x000c0a18 --ra-ra-ra- root mqm
I do not have the permission to perform an ipcrm command with user mqm on the given elements. I assume it is because there are elements created by the root user.
Has anyone an idea why these elements were created by the root user? The installation has been made with the mqm user and all directories belong to the mqm user. The queue manager has been created and started by the mqm user, too.
Posted: Thu Mar 27, 2003 8:12 am Post subject: Get help from Admin
Centurion
Joined: 28 Jan 2003 Posts: 109 Location: Colorado
MQ is notorious for leafing crap like this out in the OS while running… For this reason it is often beneficial to bounce MQ during off-line hours… I would work with you sys-admin to create a script that will shutdown queue mangers and clean up IPC elements. If elements are left and owned by root then the admin can add a sudo line that will remove them with root authority while not allowing mqm admins to know the root password..
Posted: Thu Mar 27, 2003 11:47 am Post subject: sudo
Centurion
Joined: 28 Jan 2003 Posts: 109 Location: Colorado
Additionally if MQ is being started automatically during the boot up process, inittab entries, then you may want to make sure that MQ is being started by the user mqm.. This should ensure that you won’t get amy IPC elements owned by root.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum