Bug 1036960 - cannot launch agent using rhqctl on linux if you need to enter a password
Summary: cannot launch agent using rhqctl on linux if you need to enter a password
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Documentation
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: ---
Assignee: Deon Ballard
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 1034963
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 00:27 UTC by John Mazzitelli
Modified: 2014-10-23 12:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1034963
Environment:
Last Closed: 2014-05-10 03:42:08 UTC
Type: Bug


Attachments (Terms of Use)

Description John Mazzitelli 2013-12-03 00:27:03 UTC
+++ This bug was initially created as a clone of Bug #1034963 +++

The agent launcher script lets you start the agent with your own custom command via RHQ_AGENT_START_COMMAND. If you set that to do a sudo, you can tell it to prompt the user for the password to sudo. for example:

RHQ_AGENT_START_COMMAND="su -m test -c '${RHQ_AGENT_HOME}/bin/rhq-agent.sh'"

If you want the user to be prompted, you can tell the launcher script to output the prompt on stdout via:

RHQ_AGENT_PASSWORD_PROMPT=true

However, if this is an agent running colocated on the server, you start the agent via rhqctl. This introduces the problem that stdin isn't redirected to the agent process so none of this prompting works. The user needs to make sure the start command does not require user input during startup.

This probably requires a release notes blurb and some additional documentation.

Comment 1 Deon Ballard 2014-05-10 03:42:08 UTC
Mass closure of bugs modified in 2013. All of these are in the currently-published docs.


Note You need to log in before you can comment on or make changes to this bug.