sudo-expect problem

Matthew Hannigan Matthew.Hannigan at nl.abnamro.com
Fri Mar 3 05:23:52 EST 2000


Ernesto,
	I suggest using the NOPASSWD feature of
sudo instead.   The problem with using expect is that
you probably have the plain text password somewhere.

-Matt





sudo at alfaqnet.qnet.com.pe on 03/03/2000 02:37:00
To:	sudo-users at courtesan.com
cc:	 (bcc: Matthew Hannigan/NL/ABNAMRO/NL)
Subject:	sudo-expect problem


Dear users :

I have a problem developing a program, because when I execute a system
privileged command trough sudo will appear the "Password:" prompt, my
programm should be able to tell the respective password interactively,
therefore I am using "expect" for this task. However I don't know why at
the time my programm send the password nothing happens.

I don't know if this a problem for sudo or for expect ?, But I also would
want know if exist a way for send the password on the same command line
that is calling to sudo.

Thank you in advance.

Best Regards.

Ernesto Freyre  






More information about the sudo-users mailing list