[patch] changing uid of the server

Michael Scherer misc at mandriva.org
Wed Sep 19 13:11:19 UTC 2007


Hi,

I think it would be nice to be able to change uid of djabberd after the various
ports have been opened, in order to enhance security.

Since no one has done it before, here is a quick patch against trunk.
It add a -u/--uid option to specify the user ( uid or username ), and a
corresponding option.

The uid is changed after opening all sockets, like most daemons does.
I have done some basic testing, but I didn't deployed yet.

Any comments on it ?
And if this is ok, can someone with proper access commit it on trunk ?

( and also suggest how this can be tested, because running test as root is
dangerous and should be avoided ).
-- 
Michael Scherer


More information about the Djabberd mailing list