<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>srkzhr</author_name>
  <author_url>https://blog.hatena.ne.jp/srkzhr/</author_url>
  <blog_title>半径5メートル</blog_title>
  <blog_url>https://srkzhr.hatenadiary.org/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>実際にやってしまった痛い失敗です。root権限で以下のような処理を実行するツールを書き捨てでつくって実行しました。 #!/bin/sh chown -R ${NEW_USER}:${NEW_GROUP} ${TARGET_DIR}/* もし、変数が空だったらどうなるでしょうか。そう、以下のようなコマンド実行になってしまいます。 chown -R : /* ユーザもグループも指定されていないので、オーナーが変更されることはありませんがls -lcでctimeを確認するとファイルは更新されてしまっています。通常のファイルには特に悪影響がなくてすみますが、sticky bitの立っている以下のような…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsrkzhr.hatenadiary.org%2Fentry%2F20081228%2F1230479429&quot; title=&quot;chownでsticky bitが壊れる - 半径5メートル&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>2008-12-28 00:50:29</published>
  <title>chownでsticky bitが壊れる</title>
  <type>rich</type>
  <url>https://srkzhr.hatenadiary.org/entry/20081228/1230479429</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
