From owner-freebsd-questions@FreeBSD.ORG Sun May 29 16:43:16 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D41C116A41C for ; Sun, 29 May 2005 16:43:16 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25E4843D1F for ; Sun, 29 May 2005 16:43:15 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 11826 invoked from network); 29 May 2005 16:43:12 -0000 Received: from unknown (HELO localhost) ([pbs]775067@[83.129.7.168]) (envelope-sender ) by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 29 May 2005 16:43:12 -0000 Date: Sun, 29 May 2005 18:43:08 +0200 From: Fabian Keil To: Richard McIntyre Message-ID: <20050529184308.3d261d6b@localhost> In-Reply-To: <4297F5A6.3050309@thecompanyonline.com> References: <4297F5A6.3050309@thecompanyonline.com> X-Mailer: Sylpheed-Claws 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Signature_Sun__29_May_2005_18_43_08_+0200_JbnvR9okvN2V4xa.; protocol="application/pgp-signature"; micalg=pgp-sha1 Cc: freebsd-questions@freebsd.org Subject: Re: [Fwd: mlock: not setgid mail] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2005 16:43:17 -0000 --Signature_Sun__29_May_2005_18_43_08_+0200_JbnvR9okvN2V4xa. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Richard McIntyre wrote: > Anyone ? > I have searched several places and everything I have seen reports that=20 > the only thing I need to do is chown /usr/local/libexec/mlock to=20 > root:mail but it currently is... take a look: >=20 > May 24 12:54:59 tco1 /usr/local/libexec/mlock[29327]: (64) not setgid mail > May 24 12:57:08 tco1 /usr/local/libexec/mlock[29382]: (64) not setgid mail > May 24 12:57:08 tco1 /usr/local/libexec/mlock[29384]: (64) not setgid mail > May 24 13:03:33 tco1 /usr/local/libexec/mlock[30399]: (64) not setgid mail > May 24 13:04:23 tco1 /usr/local/libexec/mlock[30401]: (64) not setgid mail > May 24 13:04:32 tco1 /usr/local/libexec/mlock[30403]: (64) not setgid mail >=20 > tco1# ls -ail /usr/local/libexec/ > total 4104 > 1626383 drwxr-xr-x 6 root wheel 512 May 24 13:00 . > 1625088 drwxr-xr-x 16 root wheel 512 May 6 13:36 .. > 1746408 drwxr-xr-x 2 root wheel 512 May 3 22:35 autoconf259 > 1746417 drwxr-xr-x 2 root wheel 512 May 3 22:35 automake19 > 1627965 -r-xr-xr-x 1 root wheel 63624 May 24 13:00 imapd > 1627966 -r-xr-xr-x 1 root wheel 14568 May 24 13:00 ipop2d > 1627967 -r-xr-xr-x 1 root wheel 22344 May 24 13:00 ipop3d > 1672841 drwxr-xr-x 2 root wheel 512 May 3 00:22 libtool13 > 1626599 drwxr-xr-x 2 root wheel 512 May 2 23:43 libtool15 > 1627968 -rwx--s--x 1 root mail 5808 May 24 13:00 mlock > 1628238 -r-xr-xr-x 1 root wheel 4050712 May 5 17:08 mysqld >=20 > I'm quite perplexed as to what to do about this, I also read a=20 > suggestion to rebuild the /usr/ports/mail/imap-uw so I did, but that has= =20 > not assisted any. >=20 > Any suggestions would be GREATLY appreciated. Just a guess. Try to comment the setguid check made by mlock out and recompile. Some programs seem to have problems checking if they are setgid or setuid in FreeBSD 5.X. Older versions of cdda2wav for example don't work suid and guid in FreeBSD 5.X. The check if dropping root/wheel privileges was successful fails, cdda2wav exits.=20 In recent versions the check is commented out for FreeBSD, cdda2wav works. Fabian --=20 http://www.fabiankeil.de/ --Signature_Sun__29_May_2005_18_43_08_+0200_JbnvR9okvN2V4xa. Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCmfEkbmGO+3DrZ9sRAkfJAJ9U+NxH621DIGLHSgC1R64NaH3O3wCeMsUl mFipyEkFLV4EkWngJJbajLw= =0Q0/ -----END PGP SIGNATURE----- --Signature_Sun__29_May_2005_18_43_08_+0200_JbnvR9okvN2V4xa.--