[bug] Running QHub within home directory will delete files in home directory
See original GitHub issueDescribe the bug
If a user runs the typical install process from their home directory.
conda create -n qhub -c conda-forge qhub==0.3.12
conda activate qhub
qhub init ...
qhub deploy ...
This will delete file within the home folder. This is due to the logic in https://github.com/Quansight/qhub/blob/744060aeaf19c194d39fd418c9834790c21f9f00/qhub/render/__init__.py#L139.
Acceptance Criterial
- remove all
os.remove
andshutil.rmtree
logic in QHub this is too much of a risk for qhub.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
How to delete a user & its home folder safely? - Ask Ubuntu
Removing the home directory and mail spool can be achieved using the --remove-home option. The --remove-all-files option removes all files on the system...
Read more >Linux how to remove all files from a directory (or ... - YouTube
How to remove all files from current directory in Linux Ubuntu with RM command (or shred files completely)00:00 How to Delete All Files...
Read more >permissions - Unable to delete file, even when running as root
Check the permissions of the directory. To delete a file inside it, it should be writable by you chmod ugo+w .
Read more >Linux essentials: How to create and delete files and directories
The basic syntax for using this command is mkdir {dir} (replace {dir} with the desired name of your directory). Before creating any directory...
Read more >How to Delete User Accounts with Home Directory in Linux
The directives inside the configuration file for deluser and userdel commands determine how this it will handle all user files and directory ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@iameskild cheers 😃 Good practice to just run it from inside the correct directory anyway, which works fine for me.
@costrouc @tylerpotts PR submitted. (apologies for the delay, client work has consumed most of the past week)