<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atkibe</author_name>
  <author_url>https://blog.hatena.ne.jp/atkibe/</author_url>
  <blog_title>web新参</blog_title>
  <blog_url>https://atkibe.hatenadiary.org/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>複数人でサーバを運用・構築する場合、誰がログインしているのか分からず不安になる時ありませんか？ 僕はあります。 とわいえ、常にログインユーザを監視する事は非常に難しいので今回はログイン時に実行するメール送信シェルを作る事にしました。 まずは以下のシェルスクリプトをユーザのホームディレクトリへ作成。 login.sh #!/bin/sh subject=&quot;【報告】[username]ユーザがログインしました&quot; address=&quot;info@example.com&quot; echo &quot;Reported login: $address&quot; mail -s `echo $subject | nkf -j` $a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fatkibe.hatenadiary.org%2Fentry%2F20100220%2F1266704726&quot; title=&quot; サーバにログインしているユーザの監視方法 - web新参&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>2010-02-20 07:25:26</published>
  <title> サーバにログインしているユーザの監視方法</title>
  <type>rich</type>
  <url>https://atkibe.hatenadiary.org/entry/20100220/1266704726</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
