<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Hemant Bist</b> <<a href="mailto:hemant_bist@yahoo.com">hemant_bist@yahoo.com</a>><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> <<a href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hemant_bist@yahoo.com</a>><br>Date: Aug 27, 2007 2:32 PM<br>Subject: Fw: uid for the perlball<br>To: Hemant Bist <<a href="mailto:hemantbist@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hemantbist@gmail.com</a>><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 <
<a href="mailto:david.davis@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">david.davis@gmail.com</a>><br>To: Hemant Bist <<a href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hemant_bist@yahoo.com</a>><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'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;"> --help This usage info</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
--version Print perlbal release version</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> --config=[file] Specify Perlbal config file
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> (default: /etc/perlbal/perlbal.conf)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> --daemon Daemonize</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> --drop-privs=<uid|user>[,gid|group] Drop effective privileges.
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> (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> <<a rel="nofollow" href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hemant_bist@yahoo.com
</a>> 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> I saw a thread on this topic in the archives, but it doesn'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'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;"> --help This usage info</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
--version Print perlbal release version</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> --config=[file] Specify Perlbal config file
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> (default: /etc/perlbal/perlbal.conf)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> --daemon Daemonize</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> --drop-privs=<uid|user>[,gid|group] Drop effective privileges.
</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> (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> <<a href="mailto:hemant_bist@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
hemant_bist@yahoo.com
</a>> 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> I saw a thread on this topic in the archives, but it doesn'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>