Date: Wed, 13 Feb 2008 20:38:45 +0200 From: Peter Pentchev <roam@ringlet.net> To: Matthew Seaman <m.seaman@infracaninophile.co.uk> Cc: qpadla@gmail.com, Scot Hetzel <swhetzel@gmail.com>, freebsd-ports@freebsd.org Subject: Re: net-im/openfire port related question. Message-ID: <20080213183845.GB1044@straylight.m.ringlet.net> In-Reply-To: <47B33262.9010809@infracaninophile.co.uk> References: <200802131850.45757.qpadla@gmail.com> <790a9fff0802130931u59b7c332m8bcc1a76e1a6bccd@mail.gmail.com> <47B33262.9010809@infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
--CdrF4e02JqNVZeln Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 13, 2008 at 06:09:38PM +0000, Matthew Seaman wrote: > Scot Hetzel wrote: > > On 2/13/08, Nikolay Pavlov <qpadla@gmail.com> wrote: > >> Hello all. I am a maintainer of the net-im/openfire port. I have a rep= ort > >> from Dmitri Frolov <admin@artpaint.spb.ru> that openfire uses the sam= e uid > >> as security/stunnel port. Could someone please suggest me as how i can > >> resolve this situation? > >> > > If you look at security/cyrus-sasl2/pkg-install, it checks to see if > > the username exists, if it doesn't exist, then it checks if the uid is > > available, if it is not available, it increments the uid until it > > finds an available uid. > >=20 > > Both ports should be using a similar routine to check if the uid/gid > > they are requesting is available. >=20 > Actually, that's old hat. The current standard is that you should > pick an otherwise unused UID (and/or GID) from /usr/ports/UIDs and > register that as belonging to your port. Submit a maintainer update > with patches to UIDs and GIDs plus modifications to the way the port > is installed so that it uses the allocated numbers, and you're golden. >=20 > If another port has a UID clash with yours and you have established > rights by registering the uid in this way, then you can insist that > the other port is changed to not clash with yours. =2E..and that's precisely what I did with the stunnel port five months ago, in rev. 1.48 of the ports/UIDs file :) Before that, stunnel just invoked "pw groupadd" and then "pw useradd" without any specific ID's, but now it always uses 341. Hmmm, that might indeed be a problem if this user ID is already taken by another account on the user's system; I'll see if I can work something out on the autodetection front, but my advice to Nikolay would be to pick another user ID and register it in the ports/UIDs file, at least for the benefit for people who have not yet installed openfire and shall do so for the first time in the future :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence would be seven words long if it were six words shorter. --CdrF4e02JqNVZeln Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHszk17Ri2jRYZRVMRAh7WAKC89fo10MkQ4LtH0UZ6Rq4O2yDUDgCcDe8e lPI+Xon6FCIBUdlFF/i61ec= =JeoO -----END PGP SIGNATURE----- --CdrF4e02JqNVZeln--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080213183845.GB1044>