I accidentally untarred archive intended to be extracted in root directory, which among others included some files for /etc directory.
I went on to rm -rv ~/etc, but I quickly typed rm -rv /etc instead, and hit enter, while using a root account.

you are viewing a single comment's thread
view the rest of the comments
[–] 11 points 7 months ago (8 children)

that was my reaction when I saw a coworker put random files and directories into / of a server

I feel like some people don't have a feeling about how a file system works

  • source
  • parent
  • hideshow 8 child comments
  • [–] 2 points 7 months ago (3 children)

    Its a pretty common Windows server practice to just throw random shit on the root directory of the server. I'm guilty of this at times when there isn't a better option available to me, but I at least use a dedicated directory at the root for dumping random crap and organize the files within that directory (and delete unneeded files when done) so that it doesn't create more work later.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 7 months ago (1 child)

    I mean, there is a home directory for the root-user, that you could use for these things.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 7 months ago

    Root's home directory only works if you're sshing in as root (not a great practice, although its certainly not as bad as on Windows thanks to key auth. You can simply revoke the keys of the admin you just let go rather than resetting a bunch of passwords). The reason its common practice in Windows Server administration is a combination of common practices: having dedicated admin accounts in AD for each administrator, Windows lacking a decent directory for content shared between users, and of course the general laziness that Windows administration attracts and fosters.

  • source
  • parent
  • [–] 1 point 7 months ago (2 children)

    What's so bad about that? Except that is trigger me to not have it organized.

  • source
  • parent
  • hideshow 2 child comments