From owner-freebsd-stable@FreeBSD.ORG Mon Jan 25 01:13:43 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 0DF57106566B for ; Mon, 25 Jan 2010 01:13:43 +0000 (UTC) (envelope-from cyrille.lefevre-lists@laposte.net) Received: from out4.laposte.net (out3.laposte.net [193.251.214.120]) by mx1.freebsd.org (Postfix) with ESMTP id C028F8FC14 for ; Mon, 25 Jan 2010 01:13:42 +0000 (UTC) Received: from out3.laposte.net (lbao93aubmepnpf001-183-pip.meplus.info [10.98.50.10]) by mwinf8310.laposte.net (SMTP Server) with ESMTP id 296811C000AD for ; Mon, 25 Jan 2010 01:55:59 +0100 (CET) Received: from meplus.info (localhost [127.0.0.1]) by mwinf8307.laposte.net (SMTP Server) with ESMTP id ABFDB7000089 for ; Mon, 25 Jan 2010 01:55:56 +0100 (CET) Received: from [192.168.1.133] (137.228.100-84.rev.gaoland.net [84.100.228.137]) by mwinf8307.laposte.net (SMTP Server) with ESMTP id 8088C7000088 for ; Mon, 25 Jan 2010 01:55:56 +0100 (CET) X-ME-UUID: 20100125005556526.8088C7000088@mwinf8307.laposte.net Message-ID: <4B5CEC53.3090402@laposte.net> Date: Mon, 25 Jan 2010 01:56:51 +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: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-me-spamlevel: not-spam X-me-spamrating: 39.200001 X-me-spamcause: OK, (-20)(0000)gggruggvucftvghtrhhoucdtuddrvdeltddrtdehucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtnecufhhrvggvsghsugdvgiculddqvddtmdenfhhrvggvsghsugdgucdlqddutddmneeuufffvdigucdlqddvtddmnehgvghnvghrihgtjdculdeftddm Subject: 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 01:13:43 -0000 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 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 I suppose this is a getpass() problem ? Regards, Cyrille Lefevre -- mailto:Cyrille.Lefevre-lists@laposte.net