5

Run a script, get a shit load of "Permission denied" error message... So I stop it by pressing Ctrl+C
Look at the script again there is this little line:
rm -rf $TMP_DIR/*

Look into the script again and again, $TMP_DIR is never defined...

Comments
  • 0
    What operating system are you on? Pretty sure linux prevents you from doing such things by introducing the preserve root feature
  • 0
    @ChappIO I did this on CentOS. Lucky thing is I was not running it as root. But still most stuff I had permission to got deleted.
Add Comment