sudo && rsh question

Rob listone at
Fri May 9 06:22:50 PDT 2003

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

----- Original Message -----
From: "Wilkinson,Alex" <Alex.Wilkinson at>
To: <buga at>
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 at mailing list
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list