<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: NIFI How to run nifi as user root in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-How-to-run-nifi-as-user-root/m-p/393588#M248486</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109307"&gt;@rizalt&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There is very little detail in your post.&lt;BR /&gt;&lt;BR /&gt;NiFi will run as whatever user is used to start it unless the "run.as" property is set in the NiFi bootstrap.conf file.&lt;BR /&gt;&lt;BR /&gt;If the user trying to execute the "./nifi.sh start" command is not the root user and you set the "run.as" property to "root", that user would need sudo permissions in linux to start NiFi as the root user.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The "run.as" property is ignored on Windows where the service will always be owned by user that starts it.&lt;BR /&gt;&lt;BR /&gt;NOTE: Starting the service as a different user then it was previously started at will not trigger a change in file ownership in NiFi directories. You would need to update file ownership manually be starting as a different issue (this includes all NiFi's repositories).&lt;BR /&gt;&lt;BR /&gt;While "root" user has access to all files regardless of owner, issues will exist if no root user launches app and files are owned by another user including root.&lt;BR /&gt;&lt;BR /&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 15:37:18 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-09-17T15:37:18Z</dc:date>
    <item>
      <title>NIFI How to run nifi as user root</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-How-to-run-nifi-as-user-root/m-p/393533#M248471</link>
      <description>&lt;P&gt;Hi Everyone,&lt;BR /&gt;How do you run NIFI - Ambari as root user ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 02:11:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-How-to-run-nifi-as-user-root/m-p/393533#M248471</guid>
      <dc:creator>rizalt</dc:creator>
      <dc:date>2024-09-17T02:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI How to run nifi as user root</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-How-to-run-nifi-as-user-root/m-p/393588#M248486</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/109307"&gt;@rizalt&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There is very little detail in your post.&lt;BR /&gt;&lt;BR /&gt;NiFi will run as whatever user is used to start it unless the "run.as" property is set in the NiFi bootstrap.conf file.&lt;BR /&gt;&lt;BR /&gt;If the user trying to execute the "./nifi.sh start" command is not the root user and you set the "run.as" property to "root", that user would need sudo permissions in linux to start NiFi as the root user.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The "run.as" property is ignored on Windows where the service will always be owned by user that starts it.&lt;BR /&gt;&lt;BR /&gt;NOTE: Starting the service as a different user then it was previously started at will not trigger a change in file ownership in NiFi directories. You would need to update file ownership manually be starting as a different issue (this includes all NiFi's repositories).&lt;BR /&gt;&lt;BR /&gt;While "root" user has access to all files regardless of owner, issues will exist if no root user launches app and files are owned by another user including root.&lt;BR /&gt;&lt;BR /&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 15:37:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-How-to-run-nifi-as-user-root/m-p/393588#M248486</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-09-17T15:37:18Z</dc:date>
    </item>
  </channel>
</rss>

