I accidently installed Jupyter lab as root user on an EC2 instance .
sudo su**
bash Anaconda3-4.2.0-Linux-x86_64.sh**
Now I can only run jupyter notebook from root user
jupyter notebook
And when I use terminal in jupyter lab/notebooks it opens as root user (since running it is run as root) .
Files are as
[root@ip-xxx anaconda3]# ls -ltr
total 120
-rw-rw-r-- 1 root root 5370 May 19 2017 LICENSE.txt
drwxr-xr-x 205 root root 12288 Sep 2 10:09 pkgs
drwxr-xr-x 2 root root 6 Sep 2 10:09 envs
drwxr-xr-x 3 root root 19 Sep 2 10:09 var
drwxr-xr-x 2 root root 82 Sep 2 10:09 sbin
drwxr-xr-x 3 root root 71 Sep 2 10:09 ssl
drwxr-xr-x 3 root root 20 Sep 2 10:09 doc
drwxr-xr-x 3 root root 80 Sep 2 10:09 libexec
drwxr-xr-x 14 root root 234 Sep 2 10:09 qml
drwxr-xr-x 15 root root 241 Sep 2 10:09 plugins
drwxr-xr-x 2 root root 252 Sep 2 10:09 phrasebooks
drwxr-xr-x 2 root root 8192 Sep 2 10:09 translations
drwxr-xr-x 97 root root 4096 Sep 2 10:09 mkspecs
drwxr-xr-x 20 root root 268 Sep 2 10:09 share
drwxr-xr-x 14 root root 24576 Sep 2 10:09 lib
drwxr-xr-x 27 root root 4096 Sep 2 10:09 include
drwxr-xr-x 7 root root 72 Sep 2 10:09 etc
drwxr-xr-x 2 root root 12288 Sep 2 10:09 conda-meta
drwxr-xr-x 2 root root 12288 Sep 17 12:42 bin
- Is there a way to change owner to ec2-user.
- Do I need to uninstall (from root) and re-install (as ec2-user). Will any common/shared PATHS/files have affect.
- Can I leave the jupyter install at root (but not run it) and install another on ec2-user, so as to avoid any fallouts (common/shared files) if I un-install.
Thanks
Thomas