<?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: Switch root user to non-root in NIFI in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140629#M44040</link>
    <description>&lt;P&gt;@sanaz Janbakhsh&lt;/P&gt;&lt;P&gt;Please accept the answer that helped you.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Oct 2016 23:33:43 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2016-10-23T23:33:43Z</dc:date>
    <item>
      <title>Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140622#M44033</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;NIFI was installed before with root user in our enviorment, now in order to switch it to non-root user, i'm wondering if you can help in the steps that i need to follow. Should i clean and re-install it again?&lt;/P&gt;&lt;P&gt;The version is 2.4.2.0&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;SJ&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 07:17:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140622#M44033</guid>
      <dc:creator>Sanaz_janbakhsh</dc:creator>
      <dc:date>2016-10-20T07:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140623#M44034</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11035/sanazjanbakhsh.html" nodeid="11035"&gt;@Sanaz Janbakhsh&lt;/A&gt;&lt;P&gt;Re-installing from scratch is not necessary. Shutdown your NiFi instance, create the user on your system that you want to run NiFi as and change ownership of all the files and directories used by NiFi to that user.  This includes all 4 NiFi repositories (Database, Provenance, Content, and FlowFile).  The "NiFi user" must be able to read and write to the repos, nifi logs, and state directories.  If you are unsure where to find these directories your user needs access to, look in the various config files found in NiFi's conf directory. NiFi will be able to continue working on FlowFiles that were still active in the flow as long as ownership of those files was successfully changed. After that you can either start NiFi while logged in as that new user or set the "run.as=" property in the NiFI bootstrap.conf file.  After starting NiFi as the user, tail the nifi-app.log and watch for any permission denied errors.  If you encounter any, adjusted permissions on the reported file/dir and you should be good to go.&lt;/P&gt;&lt;P&gt;There is no such thing as NiFi version 2.4.2.0?  Are you running an Apache Nifi release (0.x or 1.x) or a HDF release (1.x or 2.0)?  You can see your NiFi version by clicking on "about" in the upper right corner of the NiFi UI.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 07:57:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140623#M44034</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2016-10-20T07:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140624#M44035</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Thanks alot for the comment, it is really helpful. I'm running HDF version . i hope this is the one that you recommend.&lt;/P&gt;&lt;P&gt;SJ&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:53:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140624#M44035</guid>
      <dc:creator>Sanaz_janbakhsh</dc:creator>
      <dc:date>2016-10-20T11:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140625#M44036</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;The user that i logged in is different than "nifi" user and it is generic account. I assume that i can set "run-as=" with the same user that i logged in with and also change all the files with root owner to this generic user t and it should not be necessary "nifi" user. right?&lt;/P&gt;&lt;P&gt;Also i need to change the owner of /nifi/bin folder from root to the same user too. Right?&lt;/P&gt;&lt;P&gt;SJ&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 01:36:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140625#M44036</guid>
      <dc:creator>Sanaz_janbakhsh</dc:creator>
      <dc:date>2016-10-23T01:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140626#M44037</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;The user that i logged in is different than "nifi" user and it is generic account. I assume that i can set "run-as=" with the same user that i logged in with and also change all the files with root owner to this generic user t and it should not be necessary "nifi" user. right?&lt;/P&gt;&lt;P&gt;Also i need to change the owner of /nifi/bin folder from root to the same user too. Right?&lt;/P&gt;&lt;P&gt;SJ&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 01:36:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140626#M44037</guid>
      <dc:creator>Sanaz_janbakhsh</dc:creator>
      <dc:date>2016-10-23T01:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140627#M44038</link>
      <description>&lt;P&gt;NiFi sets no specific requirement for what user account is used to run NiFi. as long as that user has the ability to read and write to the various NiFi directories, you will be good. what ever user you decide on will need the execute permissions on the files in the bin directory.&lt;/P&gt;&lt;P&gt;The purpose of serving the run.as= property is so that NiFi will start as that set user even if the executable is trigger by root.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 05:05:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140627#M44038</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2016-10-23T05:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140628#M44039</link>
      <description>&lt;P&gt;Thanks alot Matt for the confirmation.&lt;/P&gt;&lt;P&gt;SJ&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 09:22:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140628#M44039</guid>
      <dc:creator>Sanaz_janbakhsh</dc:creator>
      <dc:date>2016-10-23T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140629#M44040</link>
      <description>&lt;P&gt;@sanaz Janbakhsh&lt;/P&gt;&lt;P&gt;Please accept the answer that helped you.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Oct 2016 23:33:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140629#M44040</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2016-10-23T23:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140630#M44041</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;The solution perfectly helped me and fixed my issue. I don't know how to accept the answer though. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;SJ&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 07:31:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/140630#M44041</guid>
      <dc:creator>Sanaz_janbakhsh</dc:creator>
      <dc:date>2016-10-25T07:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Switch root user to non-root in NIFI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/359741#M44042</link>
      <description>&lt;P&gt;Thanks Matt ... seeing and fixing all directories ownership was key to start again NiFi ...&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2022 19:43:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Switch-root-user-to-non-root-in-NIFI/m-p/359741#M44042</guid>
      <dc:creator>JCSoto</dc:creator>
      <dc:date>2022-12-17T19:43:57Z</dc:date>
    </item>
  </channel>
</rss>

