[patch] changing uid of the server

Pedro Melo melo at simplicidade.org
Wed Sep 19 22:24:51 UTC 2007


Hi,

On Sep 19, 2007, at 8:07 PM, Edward Rudd wrote:

> Yuppers, my init.d script does exactly that, it switches to
> non-privileged user and runs djabberd.  The only benefit of having the
> daemon changing euids itself would be the *absent minded sysadmin*
> running djabberd manually on the root prompt. Especially during  
> testing
> and messing up all the file permissions:).

So the proper patch is exit(1) if $EUID == 0; :)

Best regards,

>
> Jeremy Lawler wrote:
>> I think I must be missing something.  Jabber doesn't use any low
>> numbered ports, so why do you need to change the uid after you start
>> it?  You can start the server as an unprivileged account and bypass
>> the whole "changing UIDs" thing.<erudd.vcf>

-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo at simplicidade.org
Use XMPP!




More information about the Djabberd mailing list