su command question
Derek Broughton
news at pointerstop.ca
Sat Jul 5 14:18:06 UTC 2008
Mario Vukelic wrote:
> On Fri, 2008-07-04 at 17:12 -0700, Smoot Carl-Mitchell wrote:
>> The original poster wanted the script to run as the
>> user "ventrilo" and *not* as the user "root".
>
> It's early in the morning and maybe there is a better solution, but it
> seems sensible to do the following if there isn't one:
>
> sudo su ventrilo -c "/etc/ventrilo/ventrilo_srv -d"
>
> The OP can the set up /etc/sudoers to allow running 'su ventrilo -c
> "/etc/ventrilo/ventrilo_srv -d"' without a password
What's wrong with:
$ sudo -u ventrilo -s "/etc/ventrilo/ventrilo_srv -d"
:-) It's no big deal, but probably a little less confusing when
modifying /etc/sudoers
--
derek
More information about the ubuntu-users
mailing list