The scripts will use sudo if the RUNNER_USER does not match the user
currently running the script. When building from src the RUNNER_USER
variable is left blank. Packaged builds of Riak set this variable to "riak".

You can modify the packaged installed scripts to set this variable to a
different user or leave it blank to run as whatever user ran the command.

Using sudo in the packaged builds avoids a number of issues that crop up
with file system permissions, however, a bug has been opened to look into
changing the current behavior:
https://issues.basho.com/show_bug.cgi?id=295

<https://issues.basho.com/show_bug.cgi?id=295>Thanks,
Dan

Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
d...@basho.com


On Mon, Oct 11, 2010 at 8:13 AM, Wilson MacGyver <wmacgy...@gmail.com>wrote:

> are you installing it from src? because I run it as a non-root user and it
> never requested sudo
>
> On Mon, Oct 11, 2010 at 10:57 AM, Mojito Sorbet <mojitot...@gmail.com>
> wrote:
> > My question is not about installing it as root, but running it as root.
> > The "riak start" script immediately tries to do a sudo.  Why is this
> > necessary?   If I could configure it so the data files do not go
> > into /var, for example.
> >
> > It seems to me this is independent from how I built or installed it.
> >
> >
> > On Mon, 2010-10-11 at 10:43 -0400, Alexander Sicular wrote:
> >> The only part of the Riak 'world' that probably is easiest installed as
> root is erlang. Although you could install erlang as non root. Once you have
> erlang installed, you can compile riak as non root and it works fine.
> >>
> >> -alexander
> >>
> >> On Oct 11, 2010, at 9:19 AM, Mojito Sorbet wrote:
> >>
> >> > If I do not want Riak to run as 'root', do I have to run it from a
> >> > compiled installation rather than the binary installation?
> >> >
> >> >
> >> > _______________________________________________
> >> > riak-users mailing list
> >> > riak-users@lists.basho.com
> >> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >>
> >
> >
> >
> > _______________________________________________
> > riak-users mailing list
> > riak-users@lists.basho.com
> > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> >
>
>
>
> --
> Omnem crede diem tibi diluxisse supremum.
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to