Bug 44 - display problems with sudo on sco openserver
display problems with sudo on sco openserver
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.3
Other SCO OpenServer
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2001-06-19 11:48 MDT by David M. Zendzian
Modified: 2004-08-05 21:45 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David M. Zendzian 2001-06-19 11:48:28 MDT
when running sudo from ptty (via telnet or ssh) sudo does not echo "Password"
prompt. It does not echo the prompt until after the command is executed & sudo
turns back on the local echo.

It works fine from local console.

We attempted to create a shell script that would "echo -n..." a Password prompt,
but it would not echo until _after_ the execution of the sudo command.

We created a break point in sudo right before it executes the password request
routine and had it just exit(0), and then all prompts worked OK.

This has been tested on sco 5.0.5, and we will try again on a 5.0.6 machine
later this week.
Comment 1 Todd C. Miller 2001-12-17 16:58:59 MST
That's very strange indeed.  It sounds like a buffering problen but sudo doesn't use stdio so
that should not be an issue.  I suppose you could try changing the TCSAFLUSH in tgetpass.c to
TCSADRAIN or TCSANOW and see if that makes a difference.  This assumes that HAVE_TERMIOS_H is
defined in config.h.  If not (which would be surprising try changing the TCSETA in tgetpass.c to
TCSETAF.
Comment 2 Todd C. Miller 2004-08-05 17:45:14 MDT
The prompt writing was changed to be after echo is turned off (instead of before) in sudo 1.6.7, which 
could possibly help things.  Since I have no access to a machine running SCO, this bug report is from 
sudo 1.6.3, and it sounds like a bug in SCO's pty handling I am going to close it.  We can open it 
again later if you wish to try an debug the issue with a newer version of sudo.