I administer a dataset at my workplace (using Centos 7). The data files for this dataset are in a file structure where everything belongs to 'myuser:group', with write permission allowed only to myuser (aka me) to prevent unfortunate things from happening.However, today I just went to copy a whole directly of files for a project and I used 'mv' instead of 'cp' on them. While this didn't do anything bad, it certainly alerts me to the possibility that something bad could happen.The goal is, I want the users of 'group' to be able to 'cp' files out of this directory structure, but not to have write access. These files are already backed up elsewhere, so my goal here is to prevent myself from doing something stupid in the future, not to recover the files in case of stupidity. I was thinking something along the lines of making root the owner of those files, so I'd have to 'sudo' to do any damage. What can I do help prevent myself form accidentally editing/erasing these files?
I just used 'mv' instead of 'cp' on important files. How do I avoid that in the future?
centos;files;users