From owner-freebsd-stable@FreeBSD.ORG Mon Jan 25 09:33:54 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD014106566C for ; Mon, 25 Jan 2010 09:33:54 +0000 (UTC) (envelope-from cyrille.lefevre-lists@laposte.net) Received: from out3.laposte.net (out4.laposte.net [193.251.214.121]) by mx1.freebsd.org (Postfix) with ESMTP id 7B2718FC22 for ; Mon, 25 Jan 2010 09:33:54 +0000 (UTC) Received: from meplus.info (localhost [127.0.0.1]) by mwinf8316.laposte.net (SMTP Server) with ESMTP id D13007000570; Mon, 25 Jan 2010 10:33:52 +0100 (CET) Received: from [192.168.1.133] (137.228.100-84.rev.gaoland.net [84.100.228.137]) by mwinf8316.laposte.net (SMTP Server) with ESMTP id 7604C700056D; Mon, 25 Jan 2010 10:33:52 +0100 (CET) X-ME-UUID: 20100125093352483.7604C700056D@mwinf8316.laposte.net Message-ID: <4B5D65BA.5060300@laposte.net> Date: Mon, 25 Jan 2010 10:34:50 +0100 From: Cyrille Lefevre Organization: ACME User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Glen Barber References: <4B5CEC53.3090402@laposte.net> <20100125025744.GA94378@orion.hsd1.pa.comcast.net> In-Reply-To: <20100125025744.GA94378@orion.hsd1.pa.comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-me-spamlevel: not-spam X-me-spamrating: 30.400000 X-me-spamcause: OK, (-240)(0000)gggruggvucftvghtrhhoucdtuddrvdeltddrtdehucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucdlqddutddtmdenfhhrvggvsghsugefgiculddqfedtmdenfhhrvggvsghsugdgucdlqddutddmneeuuffffeigucdlqdeftddmnehgvghnvghrihgtjdculdeftddm Cc: freebsd-stable@freebsd.org Subject: Re: su password prompt ti stdout instead of /dev/tty X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2010 09:33:54 -0000 Glen Barber a =E9crit : > Hi, >=20 > Cyrille Lefevre wrote:=20 >> Hi, >> >> su password prompt is displayed to *stdout* instead of */dev/tty*. >> >> # su user >> $ su root -c date > /tmp/date 2>&1 >> (nothing displayed) >> $ cat /tmp/date >> Password:su: Sorry >> $ uname -a >> FreeBSD freebsd8.my.domain 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov= =20 >> 21 15:48:17 UTC 2009=20 >> root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >> >> I suppose this is a getpass() problem ? >> >=20 > I cannot reproduce this. In fact, >=20 > su root -c date > /tmp/date >=20 > hangs waiting for input. in fact, you exactly reproduce what I want, su hangs for input bcoz the password prompt is displayed onto stdout, but you don't know it unless you look at the output file. > orion % su root -c date > /tmp/date=20 > ^C > su: Sorry > orion % less /tmp/date=20 > Password: > orion %=20 >=20 > Also, you appear to be running an unpatched version of FreeBSD 8.0, > subject to the rtld exploit (among a few others). I'd suggest upgradin= g. don't care, it's a vmware guest for testing. thanks anyway. Regards, Cyrille Lefevre --=20 mailto:Cyrille.Lefevre-lists@laposte.net