<?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: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100724#M63726</link>
    <description>&lt;P&gt;You are not using the correct command. The above command will try to 'execute' the log file as a shell script. If you want to view its contents you need to specify an editor like vi or vim etc&lt;/P&gt;&lt;P&gt;You can use one of the below&lt;/P&gt;&lt;PRE&gt;more /var/lib/ambari-server/ambari-server.log&lt;/PRE&gt;&lt;PRE&gt;tail /var/lib/ambari-server/ambari-server.log&lt;/PRE&gt;&lt;PRE&gt;vi /var/lib/ambari-server/ambari-server.log&lt;/PRE&gt;</description>
    <pubDate>Fri, 25 Dec 2015 02:12:20 GMT</pubDate>
    <dc:creator>abajwa</dc:creator>
    <dc:date>2015-12-25T02:12:20Z</dc:date>
    <item>
      <title>Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100721#M63723</link>
      <description>&lt;P&gt;am getting the below warning message while connecting the VM using virtual box, can you please let me know the significance of this warning and how critical is this access ? how can I address this issue ?&lt;/P&gt;&lt;P&gt;Cannot change directory to /var/lib/ranger : Permission denied&lt;/P&gt;&lt;P&gt;-bash: /var/lib/ranger/.bash_profile: Permission Denied &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1083-permission1.jpg" style="width: 1444px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23785i435DD0DCCA0B473B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1083-permission1.jpg" alt="1083-permission1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:54:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100721#M63723</guid>
      <dc:creator>haisure</dc:creator>
      <dc:date>2022-09-16T09:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100722#M63724</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/1555/haisure.html" nodeid="1555"&gt;@Suresh Raju&lt;/A&gt; you can probably ignore this: it should not have impact.&lt;/P&gt;&lt;P&gt;+ &lt;A rel="user" href="https://community.cloudera.com/users/527/rmolina.html" nodeid="527"&gt;@rmolina&lt;/A&gt; if this is reproducible, we should file a bug and correct in the future to avoid confusion.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 01:51:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100722#M63724</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-25T01:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100723#M63725</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132" target="_blank"&gt;@Ali Bajwa&lt;/A&gt;, Thanks, but can you check if the below error message in anyway related to the access? am trying to get the logs for addressing another issue, but am getting permission denied, am I missing something here?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1085-ambari-server-permission.jpg" style="width: 1240px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23784iEE06C746ED2B2B1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1085-ambari-server-permission.jpg" alt="1085-ambari-server-permission.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:25:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100723#M63725</guid>
      <dc:creator>haisure</dc:creator>
      <dc:date>2019-08-19T12:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100724#M63726</link>
      <description>&lt;P&gt;You are not using the correct command. The above command will try to 'execute' the log file as a shell script. If you want to view its contents you need to specify an editor like vi or vim etc&lt;/P&gt;&lt;P&gt;You can use one of the below&lt;/P&gt;&lt;PRE&gt;more /var/lib/ambari-server/ambari-server.log&lt;/PRE&gt;&lt;PRE&gt;tail /var/lib/ambari-server/ambari-server.log&lt;/PRE&gt;&lt;PRE&gt;vi /var/lib/ambari-server/ambari-server.log&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Dec 2015 02:12:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100724#M63726</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-25T02:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100725#M63727</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/132/abajwa.html" nodeid="132"&gt;@Ali Bajwa&lt;/A&gt;, that was a crazy miss from my end..!! &lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 02:18:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100725#M63727</guid>
      <dc:creator>haisure</dc:creator>
      <dc:date>2015-12-25T02:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100726#M63728</link>
      <description>&lt;P&gt;Sure! Just a friendly reminder to close some of the threads you have opened by accepting an answer once the issue is resolved. That would be a great help because we currently have too many open threads&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 02:25:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100726#M63728</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2015-12-25T02:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100727#M63729</link>
      <description>&lt;P&gt;This is reproducible! I have the same BUG on  HDP_2.3.2_virtualbox.ova&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1290-20160112-valilla-sandbox-ranger.jpg" style="width: 734px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23783i5E87D35A5D93417D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1290-20160112-valilla-sandbox-ranger.jpg" alt="1290-20160112-valilla-sandbox-ranger.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:24:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100727#M63729</guid>
      <dc:creator>tech</dc:creator>
      <dc:date>2019-08-19T12:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100728#M63730</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1838/tech.html" nodeid="1838"&gt;@Peter Young&lt;/A&gt;&lt;P&gt;I will ignore that "Warning" &lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 05:18:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100728#M63730</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-01-13T05:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100729#M63731</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1555/haisure.html" nodeid="1555"&gt;@Suresh Raju&lt;/A&gt; are you still having issues with this? Can you accept best answer or provide your own solution?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:21:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100729#M63731</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T03:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bash_Profile : Cannot change directory to /var/lib/ranger : Permission denied</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100730#M63732</link>
      <description>&lt;P&gt;I also get this warning on HDP 2.3.2 - It is only a warning and I'd be interested to know what the impact is. It seems strange that the "ranger" user doesn't have access to the "/var/lib/ranger" folder...especially as there are .bash_profile files in here, suggesting it's some kind of home folder&lt;/P&gt;
&lt;PRE&gt;[root@sandbox ranger]# id ranger
uid=1008(ranger) gid=503(hadoop) groups=503(hadoop),487(ranger)
[root@sandbox ranger]# ls -dl /var/lib/ranger
drwx------ 2 kms kms 4096 2015-10-27 12:56 /var/lib/ranger
[root@sandbox ranger]# ls -la .
total 20
drwx------   2 kms  kms  4096 2015-10-27 12:56 .
drwxr-xr-x. 39 root root 4096 2016-02-28 14:38 ..
-rw-r--r--   1 kms  kms    18 2015-09-22 16:40 .bash_logout
-rw-r--r--   1 kms  kms   176 2015-09-22 16:40 .bash_profile
-rw-r--r--   1 kms  kms   124 2015-09-22 16:40 .bashrc
[root@sandbox ranger]# getent passwd ranger
ranger:x:1008:503:Ranger:/var/lib/ranger:/bin/bash
[root@sandbox ranger]#
&lt;/PRE&gt;&lt;P&gt;Should I make the 'ranger' user part of the kms group? I would still have to make the /var/lib/ranger folder group readable (at least).&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2016 22:58:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-Profile-Cannot-change-directory-to-var-lib-ranger/m-p/100730#M63732</guid>
      <dc:creator>mark_fidler</dc:creator>
      <dc:date>2016-02-28T22:58:44Z</dc:date>
    </item>
  </channel>
</rss>

