From owner-freebsd-questions@FreeBSD.ORG Fri May 9 00:36:03 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 714FD37B401 for ; Fri, 9 May 2003 00:36:03 -0700 (PDT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1AD943F3F for ; Fri, 9 May 2003 00:36:01 -0700 (PDT) (envelope-from Alex.Wilkinson@dsto.defence.gov.au) Received: from dsto-ms2.dsto.defence.gov.au (dsto-ms2.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id h497aI7U021482 for ; Fri, 9 May 2003 17:06:18 +0930 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by dsto-ms2.dsto.defence.gov.au ; Fri, 9 May 2003 17:05:50 +0930 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81])h497VW825438; Fri, 9 May 2003 17:01:32 +0930 (CST) Received: from squirm.dsto.defence.gov.au ([131.185.75.211]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id J8WS8AA9; Fri, 9 May 2003 17:01:25 +0930 Date: Fri, 9 May 2003 17:01:32 +0930 (CST) From: "Wilkinson,Alex" X-X-Sender: wilkinsa@squirm.dsto.defence.gov.au To: buga@auug.org.au Message-ID: <20030509164859.I41849@squirm.dsto.defence.gov.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Mailman-Approved-At: Fri, 09 May 2003 04:35:12 -0700 Subject: sudo && rsh question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex.Wilkinson@dsto.defence.gov.au List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2003 07:36:03 -0000 I have a slight problem with running sudo over an rsh connection. If I rsh to a box and pass to it the sudo command my password gets echo'ed to stdout. eg # rsh host sudo ls / Password:thepassword It seems that this is a terminal handling problem. If I run: # rsh host xterm -e sudo ls / an exterm starts up and I can type my password in without it being echo'ed to stdout. The xterm then sits in the background. I have tryed using subshells and couldn't suss it out. Can anyone recommend a way so that the terminal does *not* echo my password when sudo prompts for it. Thanks - aW