Hi Jon,

After some reading in the man pages I think I need to use the sudo -S option 
that 
passes the password via the stdin instead of the terminal...

Yep, that worked :)

Thanks
John

On 5 Oct 2008 at 11:44, Jon Elson wrote:

> John Thornton wrote:
> > My question is how can I pass my password to the "sudo make setuid"
> > line?
> >
> >   
> I can't guarantee this will work with sudo, but the shell mechanism to
> pass additional lines to a command goes like this :
> 
> progx << 5
> next 5 lines are input to "progx"
> 
> I tried this and it seems to work here, on a CentOS system, so in your
> case it would look like :
> 
> sudo make setuid << 1
> your-password
> 
> Jon
> 
> 
> 
> ----------------------------------------------------------------------
> --- This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK &
> win great prizes Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ Emc-developers mailing
> list [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers
> 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to