Hi. I am trying to use the ubuntu base image to install a pip package and run it as the abc user. I cant get it to work though. In a regular linux install the same commands work as expect (sudo for the python install obviously).
This particular pip package makes use of a config file in /home/user/.config/package name/. My first guess is that this could be the route of all the issues. I just dont know how to fix it.
Once created and logged in as the abc user through my portainer interface, trying to run a command gives
PermissionError: [Errno 13] Permission denied: '/root/.config/package name
Can anyone help me with this? I’ve done a lot of googling over the last couple of days and tried a lot of things that I dont really understand and always end up with the same error.
bash: /root/.bashrc: Permission denied
abc@5da8caedf115:~/.config/deemix$ deemix --help
Traceback (most recent call last):
File "/usr/local/bin/deemix", line 7, in <module>
from deemix.__main__ import main
File "/usr/local/lib/python3.6/dist-packages/deemix/__main__.py", line 4, in <module>
import deemix.app.cli as app
File "/usr/local/lib/python3.6/dist-packages/deemix/app/cli.py", line 11, in <module>
sp = SpotifyHelper()
File "/usr/local/lib/python3.6/dist-packages/deemix/app/spotify.py", line 37, in __init__
self.initCredentials()
File "/usr/local/lib/python3.6/dist-packages/deemix/app/spotify.py", line 41, in initCredentials
mkdir(self.configFolder)
PermissionError: [Errno 13] Permission denied: '/root/.config/deemix/'
abc@5da8caedf115:~/.config/deemix$
EDIT: I just changed it to this and now its working…