<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Hemant Bist</b> &lt;<a href="mailto:hemant_bist@yahoo.com">hemant_bist@yahoo.com</a>&gt;<br>Date: Aug 27, 2007 2:33 PM
<br>Subject: Re: uid for the perlball (Solution from David)<br>To: <a href="mailto:perlbal@lists.danga.com">perlbal@lists.danga.com</a><br><br></span>Hi,,<br>Forwarding the email for David to the group.<br><br>cheers,<br>
HB<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Hemant Bist</b> &lt;<a href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

hemant_bist@yahoo.com</a>&gt;<br>Date: Aug 27, 2007 2:32 PM<br>Subject: Fw: uid for the perlball<br>To: Hemant Bist &lt;<a href="mailto:hemantbist@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hemantbist@gmail.com</a>&gt;<br><br></span><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Forwarded Message ----<br>From: David Davis &lt;
<a href="mailto:david.davis@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">david.davis@gmail.com</a>&gt;<br>To: Hemant Bist &lt;<a href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

hemant_bist@yahoo.com</a>&gt;<br>Sent: Saturday, August 25, 2007 9:25:47 PM<br>Subject: Re: uid for the perlball<br><br>Hi Hemant,<br><br>Sorry, You may have received multiple messages from me.<br>It looks like I can&#39;t post to the perlbal list from gmail, and I was using reply to all.
<br><br>Could you forward this to the list, Thanks!<br>
David<br><br>-------<span style="font-weight: bold;"></span><br>
<br>
I just whipped up this new version of the perlbal startup script that will drop privileges:<br>
<br>
<a rel="nofollow" href="http://svn.xantus.org/shortbus/trunk/cometd-perl/perlbal" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://svn.xantus.org/shortbus/trunk/cometd-perl/perlbal
</a><br>
<br>
<br>
<span style="font-family: courier new,monospace;">xantus@cometd:~/$ ./perlbal --help</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Usage: perlbal [OPTS]
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; --help&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This usage info</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
&nbsp; --version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Print perlbal release version</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; --config=[file]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specify Perlbal config file
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (default: /etc/perlbal/perlbal.conf)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp; --daemon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Daemonize</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; --drop-privs=&lt;uid|user&gt;[,gid|group]&nbsp;&nbsp; Drop effective privileges.
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (gid is optional)</span><br style="font-family: courier new,monospace;">
<br>

Cheers!<br>
<span><br>-- <br>David Davis<br>☄ Software Engineer</span><br><br><br><div><span class="gmail_quote">On 8/25/07, <b class="gmail_sendername">Hemant Bist</b> &lt;<a rel="nofollow" href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

hemant_bist@yahoo.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>Is there a way to change the effective uid/gid of the perlbal from root to non privileged user(if perlbal is listening on a privileged port?).
<br><br>&nbsp;I saw a thread on this topic in the archives, but&nbsp; it doesn&#39;t indicate if someone has already added this functionality. 
<br><br><a rel="nofollow" href="http://lists.danga.com/pipermail/perlbal/2007-February/000399.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.danga.com/pipermail/perlbal/2007-February/000399.html
</a><br><br>Thanx,<br><span>HB<br>
</span></blockquote></div><br>
</div><br></div></div></div><br>Hi Hemant,<br><br>Sorry, You may have received multiple messages from me.<br>It looks like I can&#39;t post to the perlbal list from gmail, and I was using reply to all.<br><br>Could you forward this to the list, Thanks!
<br>
David<br><br>-------<span style="font-weight: bold;"></span><br>
<br>
I just whipped up this new version of the perlbal startup script that will drop privileges:<br>
<br>
<a href="http://svn.xantus.org/shortbus/trunk/cometd-perl/perlbal" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://svn.xantus.org/shortbus/trunk/cometd-perl/perlbal
</a><br>
<br>
<br>
<span style="font-family: courier new,monospace;">xantus@cometd:~/$ ./perlbal --help</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Usage: perlbal [OPTS]
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; --help&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This usage info</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
&nbsp; --version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Print perlbal release version</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; --config=[file]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Specify Perlbal config file
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (default: /etc/perlbal/perlbal.conf)</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">&nbsp; --daemon&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Daemonize</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp; --drop-privs=&lt;uid|user&gt;[,gid|group]&nbsp;&nbsp; Drop effective privileges.
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (gid is optional)</span><br style="font-family: courier new,monospace;">
<br>

Cheers!<br>
<span><br>-- <br>David Davis<br>☄ Software Engineer</span><br><br><br><div><span class="gmail_quote">On 8/25/07, <b class="gmail_sendername">Hemant Bist</b> &lt;<a href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

hemant_bist@yahoo.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>Is there a way to change the effective uid/gid of the perlbal from root to non privileged user(if perlbal is listening on a privileged port?).
<br><br>&nbsp;I saw a thread on this topic in the archives, but&nbsp; it doesn&#39;t indicate if someone has already added this functionality. 
<br><br><a href="http://lists.danga.com/pipermail/perlbal/2007-February/000399.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.danga.com/pipermail/perlbal/2007-February/000399.html
</a><br><br>Thanx,<br><span>HB<br>
</span></blockquote></div><br>
<br>