If you only want to run one command as another user (another script perhaps? even a dynamically generated one?) you can use the -c option to su.

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