su command question
rcdailey at gmail.com
Sat Jul 5 18:31:34 UTC 2008
On Sat, Jul 5, 2008 at 1:12 PM, Smoot Carl-Mitchell <smoot at tic.com> wrote:
> On Sat, 2008-07-05 at 12:51 -0500, Robert Dailey wrote:
>> That's excellent, I didn't know that rc.local is run by root. That
>> solves starting the server at boot time, however what if I want to
>> issue the Ventrilo server start/stop commands without being prompted?
>> Is this when I use "sudo su" together?
> Just run:
> sudo -u ventrilo <command>
> Assuming you have sudo privileges, this will work without a password
I recall that running "sudo <command>" outside of a script results in
a password prompt for my own password, but it only asks for this once.
Subsequent "sudo" commands do not prompt me for a password. Will this
behave differently in a script?
More information about the ubuntu-users