-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add rm -i
to the 03-working-with-files lesson
#153
Comments
Alternatively, why are we teaching |
File deletion warningContinuing on these old remarks for Working with Files and Directories that might be useful to add in the Instructor Notes as a Warning: Using Docker rather than AWS may lead to deleting files on host computer regardless of file permissions. Conclusion:Strong caution should be taken if teaching users that file permissions alone and by themselves would be protective. To quote @ryanpeek first post it would be best to talk about Verify yourself:If you want to recreate this you can use these commands to share the current directory: (requires that
User can be created by While this might be a peculiar behavior of Docker instances, it is nevertheless a lesson that file privileges are not absolute. I also have experience with file permissions being "just appearances" in Linux systems sharing very large disk space (assembled to appear as one gigantic disk by systems such as Isilon for example: in this case the permissions seen by the Linux user was just a pale idea of the truth i.e. the real file permissions. |
Thanks @jsgro, I agree that it's useful to have this information in the Instructor notes. Are you up to put in a pull request? |
I was so baffled by this (above comment: "File deletion warning") that I opened an issue on the Docker Github and the gist of it is that on a Mac, a Docker-Linux instance will remove the file and not ask if it is OK. That is the problem that in the end I find disturbing. (There are "deep" explanation on the issue (5944) to explain why that is.) On the Working with Files and Directories,lesson 03, having the file permission set to
I would like to point out that the student might think that the file will be protected from being removed, even if we eventually remove it with TO SECURE files from being deleted, it is a better practice to change the permissions of the directory containing the file(s) to make the directory read-only which will prevent file deletion. In addition, |
Showing
rm -i
in the lesson would be a nice option instead of justrm
. Many users learningrm
for the first time probably get the be very very careful spiel (hopefully). Mention the slight safety net associated withrm -i
before showing therm -r backup
.I'll try to file a PR after the workshop but wanted to get this in as a reminder.
Thanks!
R
The text was updated successfully, but these errors were encountered: