From owner-freebsd-questions Sun Apr 16 19:25:27 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 30EB337B917 for ; Sun, 16 Apr 2000 19:25:20 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12gzt6-000ME1-00; Mon, 17 Apr 2000 01:59:40 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12gzt6-0003qN-00; Mon, 17 Apr 2000 01:59:40 +0100 Date: Mon, 17 Apr 2000 01:59:40 +0100 From: Ben Smithurst To: Giorgos Keramidas Cc: Justin , freebsd-questions@freebsd.org Subject: Re: Sendmail Error Message-ID: <20000417015940.H23900@strontium.scientia.demon.co.uk> References: <005001bfa7e7$ebc7ff60$10c536d4@charon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <005001bfa7e7$ebc7ff60$10c536d4@charon> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Giorgos Keramidas wrote: > The solution is to chmod sendmail's binary to be > set-uid root, and let simple users run sendmail as > root.wheel, as shown below: > > # cd /usr/sbin > # chmod 4755 mailwrapper > > (Don't worry about seeing mailwrapper here, instead > of sendmail. Your /usr/sbin/sendmail should be a link > to mailwrapper, as far as I know. :) uh.. I think this is wrong. AFAIK you should make the real sendmail program setuid root, *not* the wrapper. ben@strontium:~$ ls -l /usr/libexec/sendmail/sendmail /usr/sbin/mailwrapper -r-sr-xr-x 1 root wheel 315788 2 Apr 02:42 /usr/libexec/sendmail/sendmail* -r-xr-xr-x 1 root wheel 4556 2 Apr 02:42 /usr/sbin/mailwrapper* -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message