Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2003 17:01:32 +0930 (CST)
From:      "Wilkinson,Alex" <Alex.Wilkinson@dsto.defence.gov.au>
To:        buga@auug.org.au
Subject:   sudo && rsh question
Message-ID:  <20030509164859.I41849@squirm.dsto.defence.gov.au>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030509164859.I41849>