Scary Steam for Linux bug erases all the personal files on your PC
The impact on you at home: The obvious implication if you're running Steam on Linux is to be wary of the program right now. As a precaution, don't connect any local external hard drives while you're running Steam. Users complaining of this bug appear to have moved their .steam or ~/.local/share/steam directories, or invoked Steam's Bash script with the --reset option enabled.
Ouch
Steam's bug appears to be caused by a line in the Steam.sh Bash script: rm -rf "$STEAMROOT/"*. That command is a basic Bash instruction that tells the computer to remove the STEAMROOT directory and all its sub-directories (folders).
That's all well and good, but the issue is that if the STEAMROOT folder is not there then the computer interprets the command as rm -rf "/"*, as first reported by Bit-Tech. If you're not familiar with Bash, that command tells the system to delete everything on your hard drive starting from the root directory.
The saving grace for Linux users is that you can only erase files you have write permissions over. That means the system itself can't be erased, but pretty much all of a user's files--including photos and personal documents--would be at risk.
Ironically, the instruction at issue is preceded by a comment from the developer: # Scary!.
Indeed.
We were not able to test this bug ourselves, but we have contacted Valve for comment on the issue. We will update this post should the company respond.