<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>SuperSecretTech</author_name>
  <author_url>https://blog.hatena.ne.jp/SuperSecretTech/</author_url>
  <blog_title>Super Action Shooting Game 4</blog_title>
  <blog_url>https://superactionshootinggame4.hatenablog.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>debian</anon>
  </categories>
  <description>rootユーザで操作時にlsコマンドの色つけがないのが不便だったので、普段使いのユーザーアカウントfooから.configなどを/rootにコピーした。そのままだとファイル所有者がもとのユーザーのfooのままだったのでファイル所有者をrootに変更しようとした。 このときのコマンドが事件の発端だった。私は以下のコマンドを打ち込んでしまいました。#cd /root #chown -R root:root .*↑これをやると「.*」は「..」も含まれるので「/root」の「..」は「/」となるので、つまり/以下のファイルすべてを再帰的に所有者rootにしてしまったのである。こうなるとデーモンやサー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsuperactionshootinggame4.hatenablog.com%2Fentry%2F2022%2F04%2F26%2F152848&quot; title=&quot;/以下のすべてのファイル所有者をrootに変更してシステム破壊して復旧した件 - Super Action Shooting Game 4&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-26 15:28:48</published>
  <title>/以下のすべてのファイル所有者をrootに変更してシステム破壊して復旧した件</title>
  <type>rich</type>
  <url>https://superactionshootinggame4.hatenablog.com/entry/2022/04/26/152848</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
