I'm not sure just how, but I'll bet you need expect here. expect lets you control input to any program and respond appropriately to it's output, all in a script.

Why won't su work? (I'm not saying it does, I'm just curious.)

David Smith wrote:
I'd like to be Borne Again in a script running as root. How can I change
to a different user (su won't work) during execution, like setuid(int)
does in C?

--Dave



____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to