https://bugzilla.redhat.com/show_bug.cgi?id=1036780
Bug ID: 1036780 Summary: rabbitmq-server wrapper script drops arguments Product: Fedora Version: rawhide Component: rabbitmq-server Assignee: hubert.plociniczak@gmail.com Reporter: rhbugs@rbu.sh QA Contact: extras-qa@fedoraproject.org CC: erlang@lists.fedoraproject.org, hubert.plociniczak@gmail.com, lemenkov@gmail.com
Description of problem: the wrapper script /usr/sbin/rabbitmqctl drops all arguments to the command in certain cases, for example when the calling user is not root.
I am running a rabbitmq node as a local user (for development) as a regular user, outside of /var. This works fine, however the Fedora-specific wrapper to "rabbitctl" will obscure access to the rabbitctl script. It took me quite a while to debug what was happening, until I found out the command is really a wrapper whose sole purpose is munging arguments -- and it does it wrong.
Version-Release number of selected component (if applicable): I am on 3.1.5-1.fc19 but I see the same bug in rawhide.
How reproducible: Always.
Steps to Reproduce: 1. Be non-root / non-rabbitmq user 2. Run rabbitmqctl status
Actual results: Error: could not recognise command Usage: rabbitmqctl [-n <node>] [-q] <command> [<command options>] ...
Expected results: Status of node rabbit@localhost ... [{pid,1234},...
Additional info: The warning "Only root or rabbitmq should run" should really be "Only root or rabbitmq must run", as currently it makes it impossible for anyone else. However, this is not true, as any user *can* run rabbitmq. Furthermore, users in the rabbitmq group should be able to run management commands, given the correct parameters. Lastly, the "rabbitmq-plugins" case looks fishy too, as it allows anyone to run the rabbitmq-plugins command, and makes the first line obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1036780
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|hubert.plociniczak@gmail.co |lemenkov@gmail.com |m |
--- Comment #1 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=1036780
Peter Lemenkov plemenko@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |FutureFeature CC| |plemenko@redhat.com Version|22 |rawhide
Red Hat Bugzilla bugzilla@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Doc Type|Bug Fix |Enhancement
https://bugzilla.redhat.com/show_bug.cgi?id=1036780
Peter Lemenkov plemenko@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
https://bugzilla.redhat.com/show_bug.cgi?id=1036780
Tuomo Soini tis@foobar.fi changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tis@foobar.fi
--- Comment #3 from Tuomo Soini tis@foobar.fi --- Created attachment 1195211 --> https://bugzilla.redhat.com/attachment.cgi?id=1195211&action=edit Improved and greatly simplified wrapper
Greatly simplified wrapper script which works properly for non-root users too.
erlang@lists.fedoraproject.org