Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2005 18:43:08 +0200
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        Richard McIntyre <rem@thecompanyonline.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: [Fwd: mlock: not setgid mail]
Message-ID:  <20050529184308.3d261d6b@localhost>
In-Reply-To: <4297F5A6.3050309@thecompanyonline.com>
References:  <4297F5A6.3050309@thecompanyonline.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature_Sun__29_May_2005_18_43_08_+0200_JbnvR9okvN2V4xa.
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Richard McIntyre <rem@thecompanyonline.com> 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.--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050529184308.3d261d6b>