Perlbal - uid for the perlball

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > August 2007 > uid for the perlball





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author uid for the perlball
Hemant Bist

2007-08-26, 1:12 am

Hi,
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?).

I saw a thread on this topic in the archives, but it doesn't indicate if
someone has already added this functionality.

http://lists.danga.com/pipermail/pe...ary/000399.html

Thanx,
HB

Todd Lipcon

2007-08-26, 1:12 am

Hi Hemant,

The best solution I know of at this time is to simply run perlbal on a
high port. We use a firewall rule in iptables to redirect port 80 to that
high port. In shorewall config format, it is:

# Allow incoming HTTP to perlbal running on 7080
REDIRECT net 7080 tcp 80

This way you can run perlbal as its own user.

Note: if you're not running as root, make sure you don't have ulimits set
for the perlbal user, especially "nofiles"

-Todd

On Sat, 25 Aug 2007, Hemant Bist wrote:

> Hi,
> 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?).
>
> I saw a thread on this topic in the archives, but it doesn't indicate if
> someone has already added this functionality.
>
> http://lists.danga.com/pipermail/pe...ary/000399.html
>
> Thanx,
> HB
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com