The easiest way is probably a couple of scripts. If your current script
is callvv.run, then you could probably write something like:
!#/bin/bash
su - root -c callvv.run
in another file with the necessary permissions, e.g. rootvv .
Then, when you run rootvv, it would prompt for pass and start callvv.run.
-Jeff
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