[zeromq-dev] UDP message with zeromq 2.0beta
Yanchao.Guo at sac.com
Thu Jan 21 11:40:28 CET 2010
That is a problem for us if we need to use PGM, as on the production machine we don't have root privilege.
I believe most applications using zeromq is going to be running as root, is there any plan to fix this?
And, really thanks for your instantaneous help! That is superb.
From: Martin Sustrik [mailto:sustrik at 250bpm.com]
Sent: Thu 1/21/2010 5:27 AM
To: Guo, Yanchao
Cc: zeromq-dev at lists.zeromq.org
Subject: Re: [zeromq-dev] UDP message with zeromq 2.0beta
> I have another question regarding PGM. in
> http://www.zeromq.org/whitepapers:design-v05, it stated that
> Comment: On Linux, PGM-enabled applications have to be run with root
> privileges. The cause is that there is no PGM implementation in the
> kernel and you have to send/receive PGM packets from the user space.
> Manipulation of raw IP sockets from user space requires root privileges.
> If you want to use multicast without root privileges you have to use PGM
> encapsulated within UDP (use say "bp/pgm://udp:eth0;22.214.171.124:5555"
> instead of "bp/pgm://eth0;126.96.36.199:5555"). Note that this is not the
> real PGM, i.e. it won't intercommunicate with other PGM implementations.
> Also, you have to set these two environment variables:
> $ export PGM_TIMER="TSC"
> $ export PGM_SLEEP="TSC"
That's outdated. The implementation was improved so that when you use
"udp://" transport, you don't have to worry about privileges. With PGM
proper ("pgm://") your application has to have privilege to create a raw
While the whitepapers may yield some useful information on internal
architecture of 0MQ, when sorting out how the API works refer to the man
pages. In this case zmq_pgm(7) and zmq_udp(7).
DISCLAIMER: This e-mail message and any attachments are intended solely for the use of the individual or entity to which it is addressed and may contain information that is confidential or legally privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and permanently delete this message and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev