Subject: Re: su(1) asking for pw if euid==0
To: None <tech-userlevel@NetBSD.org>
From: Peter Bex <Peter.Bex@xs4all.nl>
List: tech-userlevel
Date: 07/11/2007 09:11:35
--hAW+M2+FUO+onfmf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 11, 2007 at 02:07:34AM +0000, Christos Zoulas wrote:
> >So, what should be fixed? su(1), rc(8) or my understanding of them?
>=20
> Make the setuid program set the real id to 0 before exec'ing su.

Yes, please do this!  I've also had problems with database/postgresql from
pkgsrc.  It also tries to use su to stop a daemon, which prompts for
a password if you run shutdown as normal user.

Regards,
Peter
--=20
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
							-- Donald Knuth

--hAW+M2+FUO+onfmf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iQEVAwUBRpSCp9OrBFwYag3gAQK+kQf/b9EUiUaMZQ0OinZkzDk7eXQ2d2MAWtWF
M3OCDEmaO5YdL2/BeY2H8Y+jFXG0nDkiVlbs5x29Ub4wqAzA5wfAKDrkYkj6IV4a
Vx5wRRZPt1B/C1PIfRG2ExKHmQ9oiDX/TiSf7Od/9duge8o4SjhB8nCrgopDNd5t
Gv9cbWp0cLBQ/hhzv/qflvrFBrshIldbQLPLQO+4G6Hry/pSQpc8znpLp0MFNr+5
xC2XhVqivLFdp7Lt+x8MOVrqe47rtVcjKxpJVRN9w1YVtdErDCHJgsRimREzsDWq
JA2z8OTrZF0nTAUOrBQ/F4kdduU8wg1IepZ5KXfjfz87pbH2+/O5/Q==
=4bJF
-----END PGP SIGNATURE-----

--hAW+M2+FUO+onfmf--