the-littlest-jupyterhub
the-littlest-jupyterhub copied to clipboard
`sudo -E pip install ...` packages get the wrong folder permissions
Whenever I install a python library with either conda or pip the library gets install with execute only permissions for the everyone group and therefore it cant be used by anyone
root@ip: /opt/tljh/user/lib/python3.7/site-packages# ls -la | grep boto3
drwxr-x--- 9 root root 4096 Feb 14 20:02 boto3
drwxr-x--- 2 root root 4096 Feb 14 19:24 boto3-1.11.14.dist-info
I install the libraries following this docs: http://tljh.jupyter.org/en/latest/howto/env/user-environment.html it does the same with both conda and pip
sudo -E pip install numpy
produces
root@ip:/opt/tljh/user/lib/python3.7/site-packages# ls -la |grep numpy
drwxr-x--- 18 root root 4096 Feb 14 18:59 numpy
drwxr-x--- 2 root root 4096 Feb 14 18:59 numpy-1.18.1.dist-info
is this is a bug??
Not sure about this one, here are some thoughts:
- When you run
sudo -E, are you currently acting as an admin user in the hub, or have you just controlling the machine from some arbitrary account? This is almost like asking if you ransudo -E ...via a jupyter terminal, or via a SSH from your local computer. - Is this related to #418?