<?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 SPNEGO keytab file ownership and chown errors at &amp;quot;Configure Ambari Identity&amp;quot; step during &amp;quot;Kerberize Cluster&amp;quot;  in &amp;quot;Enable Kerberos Wizard&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239441#M201250</link>
    <description>&lt;P&gt;HDP 2.6.4 on RHEL 7&lt;/P&gt;&lt;P&gt;Ambari is running under non-root user.  While enabling Kerberos using Ambari, "Configure Ambari Identity" step errors out as the keytab file, /etc/security/keytabs/spnego.service.keytab is owned by non-root Ambari user.  Error:  ambari.server.AmbariException:chown: changing ownership of ‘/usr/hdp/security/keytabs/spnego.service.keytab’: Operation not permitted&lt;/P&gt;&lt;P&gt;The .csv file shows it has to be owned by root:hadoop and the non-root user is not able to do chown due to OS limitations. How to get around this issue ?&lt;/P&gt;&lt;P&gt;Can the Ambari-server be changed to run as root user by running "ambari-server setup" and restarting Ambari at this point and then restart "Enable Kerberos Wizard" ?&lt;/P&gt;&lt;P&gt;Any advice is welcome.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:00:48 GMT</pubDate>
    <dc:creator>rajeswaran_govi</dc:creator>
    <dc:date>2022-09-16T14:00:48Z</dc:date>
    <item>
      <title>SPNEGO keytab file ownership and chown errors at "Configure Ambari Identity" step during "Kerberize Cluster"  in "Enable Kerberos Wizard"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239441#M201250</link>
      <description>&lt;P&gt;HDP 2.6.4 on RHEL 7&lt;/P&gt;&lt;P&gt;Ambari is running under non-root user.  While enabling Kerberos using Ambari, "Configure Ambari Identity" step errors out as the keytab file, /etc/security/keytabs/spnego.service.keytab is owned by non-root Ambari user.  Error:  ambari.server.AmbariException:chown: changing ownership of ‘/usr/hdp/security/keytabs/spnego.service.keytab’: Operation not permitted&lt;/P&gt;&lt;P&gt;The .csv file shows it has to be owned by root:hadoop and the non-root user is not able to do chown due to OS limitations. How to get around this issue ?&lt;/P&gt;&lt;P&gt;Can the Ambari-server be changed to run as root user by running "ambari-server setup" and restarting Ambari at this point and then restart "Enable Kerberos Wizard" ?&lt;/P&gt;&lt;P&gt;Any advice is welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:00:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239441#M201250</guid>
      <dc:creator>rajeswaran_govi</dc:creator>
      <dc:date>2022-09-16T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: SPNEGO keytab file ownership and chown errors at "Configure Ambari Identity" step during "Kerberize Cluster"  in "Enable Kerberos Wizard"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239442#M201251</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/9594/rajeswarangovindan.html" nodeid="9594"&gt;@Rajeswaran Govindan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Since Ambari is running a non-privileged user, it is possible that the chown for keytab file failed due to permission issues. &lt;/P&gt;&lt;P&gt;Make sure that the sudoers file is setup properly. Please refer the below documentation for this.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-security/content/sudoer_configuration_server.html"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-security/content/sudoer_configuration_server.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 16:11:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239442#M201251</guid>
      <dc:creator>sampathkumar_ma</dc:creator>
      <dc:date>2018-12-26T16:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: SPNEGO keytab file ownership and chown errors at "Configure Ambari Identity" step during "Kerberize Cluster"  in "Enable Kerberos Wizard"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239443#M201252</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/9594/rajeswarangovindan.html" nodeid="9594"&gt;@Rajeswaran Govindan&lt;/A&gt;&lt;P&gt;If you are running the Ambari server as a non-root user, then you need to set up sudoers so that Ambari can properly sudo and execute the needed commands.  See &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/content/sudoer_configuration_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/content/sudoer_configuration_server.html&lt;/A&gt; for information on how to set this up. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 22:10:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239443#M201252</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2018-12-26T22:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: SPNEGO keytab file ownership and chown errors at "Configure Ambari Identity" step during "Kerberize Cluster"  in "Enable Kerberos Wizard"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239444#M201253</link>
      <description>&lt;P&gt;Thanks you Robert and Sampath.  In our environment editing the sudoers file is not an option.  &lt;/P&gt;&lt;P&gt;Can the Ambari-server be changed to run as root user by running "ambari-server setup" and restarting Ambari at this point and then restart "Enable Kerberos Wizard" ?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 00:13:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239444#M201253</guid>
      <dc:creator>rajeswaran_govi</dc:creator>
      <dc:date>2018-12-27T00:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: SPNEGO keytab file ownership and chown errors at "Configure Ambari Identity" step during "Kerberize Cluster"  in "Enable Kerberos Wizard"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239445#M201254</link>
      <description>&lt;P&gt;	Hi &lt;A rel="user" href="https://community.cloudera.com/users/9594/rajeswarangovindan.html" nodeid="9594"&gt;@Rajeswaran Govindan&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;	If you cant give the suoders permissions as listed docs , Its always better to run the ambari-server as root.&lt;/P&gt;&lt;P&gt;	to run ambari server again as root again follow this steps&lt;/P&gt;
&lt;PRE&gt;1)stop ambari-server
[root@asnaik-asnaik1 ~]# ambari-server stop
Using python  /usr/bin/python
Stopping ambari-server
Waiting for server stop...
Ambari Server stopped
2) perform ambari-server setup and customize the user-account for ambari server
[root@asnaik-asnaik1 ~]# ambari-server setup
Using python  /usr/bin/python
Setup ambari-server
Checking SELinux...
SELinux status is 'enabled'
SELinux mode is 'permissive'
WARNING: SELinux is set to 'permissive' mode and temporarily disabled.
OK to continue [y/n] (y)?
Customize user account for ambari-server daemon [y/n] (n)? y
Enter user account for ambari-server daemon (root):root
Adjusting ambari-server permissions and ownership...
WARNING: Command chown  -R -L root /var/lib/ambari-server returned exit code /var/lib/ambari-server with message: chown: cannot dereference ‘/var/lib/ambari-server/resources/mysql-connector-java.jar’: No such file or directory
chown: cannot dereference ‘/var/lib/ambari-server/resources/mysql-jdbc-driver.jar’: No such file or directory
Checking firewall status...
Checking JDK...
Do you want to change Oracle JDK [y/n] (n)? n
Checking GPL software agreement...
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)? n
Configuring database...
....
3) start ambari-server
[root@asnaik-asnaik1 ~]# ambari-server start
Using python  /usr/bin/python
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
&lt;/PRE&gt;&lt;P&gt;	Refer to help : &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation/content/set_up_the_ambari_server.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.0/bk_ambari-installation/content/set_up_the_ambari_server.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;	If you have any doubt.&lt;/P&gt;&lt;P style="color:green"&gt;	&lt;STRONG&gt;Please accept this answer if its helpful&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 01:22:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239445#M201254</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-27T01:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: SPNEGO keytab file ownership and chown errors at "Configure Ambari Identity" step during "Kerberize Cluster"  in "Enable Kerberos Wizard"</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239446#M201255</link>
      <description>&lt;P&gt;Thanks Akhil, that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 01:53:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SPNEGO-keytab-file-ownership-and-chown-errors-at-quot/m-p/239446#M201255</guid>
      <dc:creator>rajeswaran_govi</dc:creator>
      <dc:date>2018-12-27T01:53:35Z</dc:date>
    </item>
  </channel>
</rss>

