Results 1 to 2 of 2
A project I'm on is using message queues. It works fine when logged in as root. However, when logged in as a regular user, we get "permission denied" errors.
I've ...
- 02-04-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 1
mq_open() only seems to work for root
A project I'm on is using message queues. It works fine when logged in as root. However, when logged in as a regular user, we get "permission denied" errors.
I've installed and run w/Redhat 4.4. I've read the man pages on creating and mounting /dev/mqueue to the filesystem. I've read about naming the queue with a leading slash. I've done everthing that is stated in either books or on the web about message queues.
I've search all over the net and nothing I've read indicates that you need to be root to use message queues.
I tried searching information on any configuration that needs to be set to allow regular users permission to use message queues with no luck.
So, is there some configuration that needs to be set? Do you really need to be root to use message queues? We're just using the default attributes associated w/the message queues.
Thanks,
Ted
- 02-04-2008 #2
A you probably know, the original mq_open() call which creates a message queue requires two additional parameters. The third one is the protection mode. If that isn't set properly, you're going to have permission problems when opening the queue later -- unless you're root.
So check those permissions!--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote