Re: net-im/openfire port related question.
On Wed, Feb 13, 2008 at 06:09:38PM +, Matthew Seaman wrote: > Scot Hetzel wrote: > > On 2/13/08, Nikolay Pavlov <[EMAIL PROTECTED]> wrote: > >> Hello all. I am a maintainer of the net-im/openfire port. I have a report > >> from Dmitri Frolov <[EMAIL PROTECTED]> that openfire uses the same 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. > > > > Both ports should be using a similar routine to check if the uid/gid > > they are requesting is available. > > 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. > > 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. ...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 -- Peter Pentchev [EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED] 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. pgpoLDl19Fp2M.pgp Description: PGP signature
Re: net-im/openfire port related question.
On Wednesday 13 February 2008 20:38:45 Peter Pentchev wrote: > On Wed, Feb 13, 2008 at 06:09:38PM +, Matthew Seaman wrote: > > Scot Hetzel wrote: > > > On 2/13/08, Nikolay Pavlov <[EMAIL PROTECTED]> wrote: > > >> Hello all. I am a maintainer of the net-im/openfire port. I have a > > >> report from Dmitri Frolov <[EMAIL PROTECTED]> that openfire > > >> uses the same 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. > > > > > > Both ports should be using a similar routine to check if the uid/gid > > > they are requesting is available. > > > > 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. > > > > 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. > > ...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 Ok guys. Thanks for suggestions. I'll try to figure this out. -- == - Best regards, Nikolay Pavlov. <<<--- == ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: net-im/openfire port related question.
On Wed, Feb 13, 2008 at 06:50:45PM +0200, Nikolay Pavlov wrote: > Hello all. I am a maintainer of the net-im/openfire port. I have a report > from Dmitri Frolov <[EMAIL PROTECTED]> that openfire uses the same uid > as security/stunnel port. Could someone please suggest me as how i can > resolve this situation? Change uid/gid in net-im/openfire/pkg-install. Add new values to /usr/ports/UIDs, /usr/ports/GIDs to prevent this situation in the future. -- Adios ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: net-im/openfire port related question.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Scot Hetzel wrote: > On 2/13/08, Nikolay Pavlov <[EMAIL PROTECTED]> wrote: >> Hello all. I am a maintainer of the net-im/openfire port. I have a report >> from Dmitri Frolov <[EMAIL PROTECTED]> that openfire uses the same 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. > > Both ports should be using a similar routine to check if the uid/gid > they are requesting is available. 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. 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. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHszJi8Mjk52CukIwRCEuQAJ0aFoas/I1LVqZ9Nen7f+pv9rPB7wCfZmMS c717kxRoTQeRWfVdccCwqPc= =KFDI -END PGP SIGNATURE- ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: net-im/openfire port related question.
On 2/13/08, Nikolay Pavlov <[EMAIL PROTECTED]> wrote: > Hello all. I am a maintainer of the net-im/openfire port. I have a report > from Dmitri Frolov <[EMAIL PROTECTED]> that openfire uses the same 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. Both ports should be using a similar routine to check if the uid/gid they are requesting is available. Scot ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"
net-im/openfire port related question.
Hello all. I am a maintainer of the net-im/openfire port. I have a report from Dmitri Frolov <[EMAIL PROTECTED]> that openfire uses the same uid as security/stunnel port. Could someone please suggest me as how i can resolve this situation? P.S. Please cc me, because i am not subscribe to this list. -- == - Best regards, Nikolay Pavlov. <<<--- == ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "[EMAIL PROTECTED]"