jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.03k stars 339 forks source link

`sudo -E pip install ...` packages get the wrong folder permissions #510

Open rezuma opened 4 years ago

rezuma commented 4 years ago

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??

consideRatio commented 2 years ago

Not sure about this one, here are some thoughts: