From owner-freebsd-arch Sat Sep 2 15:39:53 2000 Delivered-To: freebsd-arch@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 7284A37B424; Sat, 2 Sep 2000 15:39:47 -0700 (PDT) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.9.3/8.9.3) with ESMTP id XAA81406; Sat, 2 Sep 2000 23:36:49 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.0/8.11.0) with ESMTP id e82MaD775707; Sat, 2 Sep 2000 23:36:13 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200009022236.e82MaD775707@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Peter Wemm Cc: Brian Somers , "Jacques A. Vidrine" , Neil Blakey-Milner , Poul-Henning Kamp , Dan Nelson , sthaug@nethelp.no, ume@FreeBSD.ORG, arch@FreeBSD.ORG, freebsd-arch@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: setuid ssh should die In-Reply-To: Message from Peter Wemm of "Sat, 02 Sep 2000 15:22:28 PDT." <200009022222.e82MMSG33103@netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 02 Sep 2000 23:36:13 +0100 From: Brian Somers Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Brian Somers wrote: > > > On Sat, Sep 02, 2000 at 10:32:44PM +0200, Neil Blakey-Milner wrote: > > > > On Sat 2000-09-02 (22:24), Poul-Henning Kamp wrote: > > > > > Uhm, how about a ssh_config variable where you tell it to drop > > > > > the setuid bit right away, wouldn't that work ? > > > > > > > > I'd prefer to leave it off. It means one less file to assure myself is > > > > safe, if I were thinking with my paranoid security hat on. > > > > > > In addition to Neil's points, setuid executables ignore LD_LIBRARY_PATH > > > and such, breaking SOCKS. ssh is the type of application one would > > > expect to use with SOCKS, so I'd prefer not having the gratuitous setuid > > > bit set. > > > > What do people reckon then (-arch cc'd) ? I'll add > > > > #ENABLE_SUIDSSH= true > > > > to etc/defaults/make.conf then mention it in ssh_config and make the > > adjustment to the ssh build so that it defaults to *not* being suid. > > Actually.. here's a thought.. we presently install ssh and hard link it > to slogin. Perhaps we could install it twice instead (its 148K or so) > and leave setuid *off* ssh and *on* for slogin. > > And make a make.conf hook about whether or not to install slogin. But slogin doesn't need to be suid either - not for any reason I know of anyway. > Cheers, > -Peter > -- > Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au > "All of this is for nothing if we don't go to the stars" - JMS/B5 -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message