<?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>topic Re: On Linux how to allow non-root users to use the splunklib Python module in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/On-Linux-how-to-allow-non-root-users-to-use-the-splunklib-Python/m-p/328325#M4746</link>
    <description>&lt;P&gt;My solution, which works but seems less than ideal, was:&lt;/P&gt;

&lt;P&gt;in /lib/python2.7/site-packages/:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chmod -R 755 setuptools-0.9.8-py2.7.egg-info
ln -s setuptools-0.9.8-py2.7.egg-info/splunklib splunklib
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Jul 2017 11:44:17 GMT</pubDate>
    <dc:creator>sillingworth</dc:creator>
    <dc:date>2017-07-24T11:44:17Z</dc:date>
    <item>
      <title>On Linux how to allow non-root users to use the splunklib Python module</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/On-Linux-how-to-allow-non-root-users-to-use-the-splunklib-Python/m-p/328324#M4745</link>
      <description>&lt;P&gt;After installing splunksdk on a linux server only the root user could import splunklib, other users would get&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"ImportError: No module named splunklib.client" *(or .results, etc)*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The module had installed itself in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've got it working now and will post an answer so people searching for the same issue can find it, but I'm not really happy with it - seems like a fudge.  I'd like to know what people think: is this intended behaviour?  Is there a better fix?  Is this a mistake by Splunk, or by the people who wrote the distro or configured my server (it's running Oracle Linux Server 7), or potentially a mistake I made installing the module (if I recall correctly it was just a case of, as root, extracting the archive then running python setup.py install)?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/On-Linux-how-to-allow-non-root-users-to-use-the-splunklib-Python/m-p/328324#M4745</guid>
      <dc:creator>sillingworth</dc:creator>
      <dc:date>2017-07-24T11:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: On Linux how to allow non-root users to use the splunklib Python module</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/On-Linux-how-to-allow-non-root-users-to-use-the-splunklib-Python/m-p/328325#M4746</link>
      <description>&lt;P&gt;My solution, which works but seems less than ideal, was:&lt;/P&gt;

&lt;P&gt;in /lib/python2.7/site-packages/:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;chmod -R 755 setuptools-0.9.8-py2.7.egg-info
ln -s setuptools-0.9.8-py2.7.egg-info/splunklib splunklib
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/On-Linux-how-to-allow-non-root-users-to-use-the-splunklib-Python/m-p/328325#M4746</guid>
      <dc:creator>sillingworth</dc:creator>
      <dc:date>2017-07-24T11:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: On Linux how to allow non-root users to use the splunklib Python module</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/On-Linux-how-to-allow-non-root-users-to-use-the-splunklib-Python/m-p/328326#M4747</link>
      <description>&lt;P&gt;The fact I had to do the chmod I think points to a server config issue, probably the umask, but the second issue seems very strange.  So root was looking inside setuptools-0.9.8-py2.7.egg-info whereas  other users weren't.  I have no idea why this would be.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 11:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/On-Linux-how-to-allow-non-root-users-to-use-the-splunklib-Python/m-p/328326#M4747</guid>
      <dc:creator>sillingworth</dc:creator>
      <dc:date>2017-07-24T11:44:36Z</dc:date>
    </item>
  </channel>
</rss>

