[rabbitmq-discuss] starting rabbitmq server as a regular user

9 views
Skip to first unread message

Roman Yakovenko

unread,
Feb 14, 2010, 3:08:58 PM2/14/10
to rabbitmq...@lists.rabbitmq.com
Hello.

I am developing client for RabbitMQ. Actually I am wrapping an
existing one. For testing purpose, I would like to start/stop server
as a regular user.

Is it possible to achieve this?

Any help is appreciated.

Thank you.

--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq...@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

Matthew Sackman

unread,
Feb 15, 2010, 6:37:23 AM2/15/10
to rabbitmq...@lists.rabbitmq.com
On Sun, Feb 14, 2010 at 10:08:58PM +0200, Roman Yakovenko wrote:
> I am developing client for RabbitMQ. Actually I am wrapping an
> existing one. For testing purpose, I would like to start/stop server
> as a regular user.
>
> Is it possible to achieve this?

Yes. We internally develop Rabbit as normal users. Rabbit needs no
special permissions at all to run. All it needs is to be able to write
to its logs and mnesia and various other files. Due to tradition, under
most sensible platforms, this is installed as the "rabbitmq" user, which
is a perfectly normal (albeit daemon) user. However, if you're building
from source, then a make run from the rabbitmq-server directory will
suffice to start Rabbit up as yourself. You may or may not consider that
a security risk - up to you!

Matthew

Roman Yakovenko

unread,
Feb 15, 2010, 8:40:29 AM2/15/10
to rabbitmq...@lists.rabbitmq.com
On Mon, Feb 15, 2010 at 1:37 PM, Matthew Sackman <mat...@lshift.net> wrote:
> On Sun, Feb 14, 2010 at 10:08:58PM +0200, Roman Yakovenko wrote:
>> I am developing client for RabbitMQ. Actually I am wrapping an
>> existing one. For testing purpose, I would like to start/stop server
>> as a regular user.
>>
>> Is it possible to achieve this?
>
> Yes. We internally develop Rabbit as normal users. Rabbit needs no
> special permissions at all to run. All it needs is to be able to write
> to its logs and mnesia and various other files. Due to tradition, under
> most sensible platforms, this is installed as the "rabbitmq" user, which
> is a perfectly normal (albeit daemon) user. However, if you're building
> from source, then a make run from the rabbitmq-server directory will
> suffice to start Rabbit up as yourself. You may or may not consider that
> a security risk - up to you!

Thanks. I've managed to build and run Rabbit from the source,

The only place, I was forced to modify Rabbit source, was
"rabbitmq-multi" file to change PIDS_FILE location:

sed -i "s%PIDS_FILE=/var/lib/rabbitmq/pids%PIDS_FILE=$SOME_DIR/var/lib/rabbitmq/pids%"
$SOME_DIR/bin/rabbitmq-multi

Other than that everything looks very nice.

Thank you.

--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/

_______________________________________________

Reply all
Reply to author
Forward
0 new messages