[MCOL-368] remote_command.sh could use the incorrect user Created: 2016-10-18 Updated: 2017-06-13 Resolved: 2017-06-05 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | installation |
| Affects Version/s: | None |
| Fix Version/s: | Icebox |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | David Hill (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 2016-21 | ||||||||
| Description |
|
remote_command.sh uses the $USER environment variable to find which user to SSH to. If 'sudo' is used or 'su' without '-l' in CentOS 7 (probably Ubuntu too) then $USER evaluates to the unprivileged user, not root. This can cause installations to fail. I would recommend using 'whoami' instead. Or postConfigure should ask what username to use. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2016-10-18 ] |
|
to clarify, changing the documentation to state that a root login shell is required would also probably be an acceptable fix. |
| Comment by David Thompson (Inactive) [ 2016-10-19 ] |
|
The kb documentation generally seems to specify root login shell but agree that it'd be better to fix this to be more robust and avoid install issues. |
| Comment by David Thompson (Inactive) [ 2017-06-05 ] |
|
Being tracked by 702 |