[ 
https://issues.apache.org/jira/browse/NIFI-1461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15140301#comment-15140301
 ] 

Joseph Witt commented on NIFI-1461:
-----------------------------------

tested the PR.  it works well in creating the user and ensuring proper 
directory perms.  It turns out the RPM lib dir contained extraneous entries 
though.  Fixed that.  Also added the proper run.as entry for the resulting RPM. 
 This is attached as patch 0002...  If you apply both patches you can validate.

So if someone can review that these two patches applied (0001 then 0002) give a 
good rpm then we're set.  As is now it will install the rpm, make the user 
accounts as needed, and when you start nifi it will start as the non-privileged 
user 'nifi'.  Pretty nice.

> RPM should create nifi user and give it access to the /opt/nifi and 
> subdirectories
> ----------------------------------------------------------------------------------
>
>                 Key: NIFI-1461
>                 URL: https://issues.apache.org/jira/browse/NIFI-1461
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 0.4.1
>            Reporter: Andre
>            Assignee: Tony Kurc
>              Labels: rpm
>             Fix For: 0.5.0
>
>         Attachments: 
> 0001-NIFI-1461-This-closes-204.-Implemented-RPM-before-af.patch, 
> 0002-NIFI-1461-added-run.as-filtered-property-for-RPM-and.patch, nifi.spec, 
> nifi.spec
>
>
> currently when installing from RPM the resulting permissions result on admins 
> having to complete the installation by adding a user and correcting 
> filesystem permissions.
> Ideally the RPM packages should result in installed files ready to be 
> utilised as a non-root user 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to