[
https://issues.apache.org/jira/browse/BIGTOP-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047650#comment-14047650
]
Sean Mackrory commented on BIGTOP-1353:
---------------------------------------
Right - sudo works, su doesn't. However, as I recall we can't rely on sudo
because it isn't always setup on Linux, and isn't even the default in some of
the distros we target. I was hoping to find out exactly why su doesn't work and
if there's some kind of flag that changes that behavior accordingly.
> Accumulo's password obfuscation is broken by su in init scripts
> ---------------------------------------------------------------
>
> Key: BIGTOP-1353
> URL: https://issues.apache.org/jira/browse/BIGTOP-1353
> Project: Bigtop
> Issue Type: Bug
> Components: Init scripts
> Reporter: Sean Mackrory
> Assignee: Sean Mackrory
> Priority: Critical
>
> When initializing an Accumulo cluster with 'service accumulo-master init', it
> will hide the entry of the initial root password with asterisks. However,
> something about the use of 'su' to run this script as the correct user is
> preventing that from working properly. It will show the password in
> plaintext, and after the user hits enter a newline is printed and the correct
> number of asterisks is entered after the fact. Using sudo (or nothing at all)
> prevents this, but relying on that is undesirable.
--
This message was sent by Atlassian JIRA
(v6.2#6252)