Operating System - HP-UX
1753295 Members
6444 Online
108792 Solutions
New Discussion юеВ

Re: sudo not accepting stdin passwords

 
Rick Jones_3
New Member

sudo not accepting stdin passwords

Upgraded from the Iexpress version A.02.00-1.6.7p5 to version A.04.00-1.6.8p4. The -S option did not seem to work any more.

This option causes sudo to read the password from the standard input instead of the terminal device.

I am running HP-UX 11.11 (trusted)

Here is what is an example...

$ echo $PASSWD | sudo -S ksh
Password:
Sorry, try again.
Password:
sudo: 1 incorrect password attempt
$
2 REPLIES 2
RAC_1
Honored Contributor

Re: sudo not accepting stdin passwords

I am on 1.6.6 and it works for me. Do as follows.

set -u;echo $PASSWD|sudo -S ksh

Anil
There is no substitute to HARDWORK
Rick Jones_3
New Member

Re: sudo not accepting stdin passwords

it worked with 1.6.7p5 but it stopped working with HP's Iexpress version of 1.6.8p4