From owner-freebsd-questions@FreeBSD.ORG Fri May 9 06:22:49 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 C2BC437B405 for ; Fri, 9 May 2003 06:22:49 -0700 (PDT) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id A21CD43F75 for ; Fri, 9 May 2003 06:22:47 -0700 (PDT) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.36 #1) id 19E7pg-0003u0-00; Fri, 09 May 2003 22:52:40 +0930 Message-ID: <000c01c3162e$1135efc0$a4b826cb@goo> From: "Rob" To: References: <20030509164859.I41849@squirm.dsto.defence.gov.au> Date: Fri, 9 May 2003 22:52:40 +0930 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4920.2300 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 cc: buga@auug.org.au cc: freebsd-questions Subject: Re: sudo && rsh question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2003 13:22:50 -0000 This is probably because the remote command doesn't have a tty, so it can't do things like disable echo. I can't see an option for rsh that fixes this - if you use ssh instead, the -t option will do exactly what you want. You can set up ssh to behave like rsh and use the .rhosts file for authentication (although this isn't the default). Unless you're on a completely isolated network, ssh might be a good idea regardless. ----- Original Message ----- From: "Wilkinson,Alex" To: Sent: Friday, May 09, 2003 5:01 PM Subject: sudo && rsh question > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >