From owner-freebsd-questions Sun Mar 19 16:56:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from sblake.comcen.com.au (sblake.comcen.com.au [203.23.236.144]) by hub.freebsd.org (Postfix) with ESMTP id E9D3637B63A for ; Sun, 19 Mar 2000 16:56:38 -0800 (PST) (envelope-from aunty@sblake.comcen.com.au) Received: (from aunty@localhost) by sblake.comcen.com.au (8.9.3/8.9.3) id MAA47327; Mon, 20 Mar 2000 12:00:41 +1100 (EST) (envelope-from aunty) Date: Mon, 20 Mar 2000 12:00:41 +1100 From: aunty To: freebsd-questions@freebsd.org Subject: password echo with remote sudo Message-ID: <20000320120041.A47022@comcen.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG We're trying to use a script which runs a sudo command on a remote linux box via ssh, and the sudo password keeps echoing to the screen even though the ssh password does not. taboo@bsdbox$ ssh linuxbox /home/sue/bin/tryit.sh taboo@linuxbox's password: <-- no password echo for ssh Please type your sudo password <-- script prompts this Password:OpenSesame <-- echo passwd for script's sudo Linux 2.2.13. Adding 'stty -echo' to the remote script doesn't work. The remote linux machine says stty: standard input: Invalid argument and for comparison, a remote FreeBSD says stty: stdin isn't a terminal What's the proper way to do this? -- Regards, -*Sue*- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message