Search code examples
linuxserver

How to protect Linux server from accidental file deletion


Like a week ago a run this command on my server mv /* .. I was trying to move all the files from my current directory to the parent directory but ended up screwing all my server :)

Is there a way to prevent this from happening again?


Solution

  • I can recommend using a minimalistic file-manager like midnight-commander to transfer files.

    However the answer to your question is no, if you're working with root permissions you have all abilities to destroy your system.

    With great power comes great responsibility - Benjamin Franklin Parker known as Uncle Ben

    you can limit the access rights by using a different user than root.