Page 2 of 2

Re: Support Python Versions

Posted: Wed Sep 04, 2019 11:04 am
by dbcummings
Ok. Got it to "work". I had to change all the permission in the site-packages directory to 777 and then "su nagios". I ran python and then "import boto3". That worked. But, this isn't an elegant solution. So, I am trying to figure out the permissions problem.

Re: Support Python Versions

Posted: Wed Sep 04, 2019 2:31 pm
by scottwilkerson
The nagios user should just need read access into the files (and x on the directories)

Re: Support Python Versions

Posted: Thu Sep 12, 2019 9:49 am
by dbcummings
Thank you. This is solved. I installed PIP into another Python version and then moved and imported PIP into the default Python installation. I then installed boto3. Then, I su'd to the Nagios user and imported boto3 using the Nagios user. This resolved the issue.

Re: Support Python Versions

Posted: Thu Sep 12, 2019 11:09 am
by scottwilkerson
dbcummings wrote:Thank you. This is solved. I installed PIP into another Python version and then moved and imported PIP into the default Python installation. I then installed boto3. Then, I su'd to the Nagios user and imported boto3 using the Nagios user. This resolved the issue.
Great!

Locking thread