| Summary: | cannot launch agent using rhqctl on linux if you need to enter a password | |||
|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | John Mazzitelli <mazz> | |
| Component: | Agent, Launch Scripts | Assignee: | Nobody <nobody> | |
| Status: | NEW --- | QA Contact: | ||
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.9 | CC: | hrupp | |
| Target Milestone: | --- | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1036960 (view as bug list) | Environment: | ||
| Last Closed: | Type: | Bug | ||
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 1036960 | |||
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.