On Mon, Feb 03, 2003 at 07:55:31PM -1000, Alvin Murphy wrote: > I have written a small bash script which starts one of my > programs (ViaVoice); in order for it to run properly, I have > to be in supervisor mode, i.e. run "su" and "password" ; my > question: is there any way to write that into the script > itself? Thanks
Instead of trying to embed a su into your script, you might consider getting familiar with sudo. You can setup permissions so that you can run only that script as root. Just try to avoid changing the script so that it runs SUID root, because that sets a precedence for sloppy security practices. -Vince