[
https://issues.apache.org/jira/browse/NIFI-1311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091226#comment-15091226
]
ASF subversion and git services commented on NIFI-1311:
-------------------------------------------------------
Commit 4f7a4e83b15f1c36713eafd0c4434b360930a951 in nifi's branch
refs/heads/master from [~aldrin]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=4f7a4e8 ]
NIFI-1311 Avoid using sudo for nifi.sh commands when run.as is the same as the
user invoking the script.
Signed-off-by: joewitt <[email protected]>
> nifi.sh invokes sudo for run.as even if it is the same as user executing
> ------------------------------------------------------------------------
>
> Key: NIFI-1311
> URL: https://issues.apache.org/jira/browse/NIFI-1311
> Project: Apache NiFi
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 0.4.0
> Reporter: Aldrin Piri
> Assignee: Aldrin Piri
> Priority: Minor
> Fix For: 0.5.0
>
> Attachments: NIFI-1311.0001.patch
>
>
> nifi.sh, when evaluating if a run.as user is set, invokes the process via
> sudo even if the specified run.as user is the same as the person executing
> it.
> While this typically isn't an issue, depending on environment configuration
> with sudo, this could lead to unexpected behavior with environment variables
> possibly being lost in the process.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)