Valve investigating scary sounding Steam bug on Linux

Steam_Logo

A friendly word of advice for anyone running Steam on Linux: Do not—do NOT—manually move your Steam directory from its default location. Users have reported that doing so has resulted in the deletion of everything in their directory trees, including, in at least one case, backups on an external drive.

The problem first came to light last week by way of GitHub user Keyvin, who moved his Steam folder to a new location but was then unable to launch it, even after browsing and pointing to the new location. After a crash and restart, it reinstalled itself and all appeared well, he wrote, "until I looked and saw that Steam had apparently deleted everything owned by my user recursively from the root directory. Including my 3TB external drive I back everything up to that was mounted under /media."

Another user lost his entire Home directory while debugging Steam, according to Readwrite, which said that the problem appears to be "a script bug in which an incorrect empty setting gets passed into an rm -rf command that erases files in a given directory, plus all the subdirectories in the home directory (and all their subdirectories, and so on, and so on)."

Valve told Gamesbeat that it has received "only a handful" of reports from Linux users who have been impacted by the bug, which is fortunate, but it has not yet been able to reproduce the problem internally. It is continuing to investigate, however, and in the meantime has added some "additional checks" to keep it from happening again.

Linux users who have run into this problem can email linux@valvesoftware.com for more information. Everyone else would probably do well to avoid messing with anything under the hood until Valve sounds the all-clear.

Andy Chalk

Andy has been gaming on PCs from the very beginning, starting as a youngster with text adventures and primitive action games on a cassette-based TRS80. From there he graduated to the glory days of Sierra Online adventures and Microprose sims, ran a local BBS, learned how to build PCs, and developed a longstanding love of RPGs, immersive sims, and shooters. He began writing videogame news in 2007 for The Escapist and somehow managed to avoid getting fired until 2014, when he joined the storied ranks of PC Gamer. He covers all aspects of the industry, from new game announcements and patch notes to legal disputes, Twitch beefs, esports, and Henry Cavill. Lots of Henry Cavill.