<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>steavevaivai</author_name>
  <author_url>https://blog.hatena.ne.jp/steavevaivai/</author_url>
  <blog_title>teruuuのブログ</blog_title>
  <blog_url>https://steavevaivai.hatenablog.com/</blog_url>
  <categories>
    <anon>CentOS</anon>
  </categories>
  <description>以前特定のコマンドしか実行できないユーザを作る必要があった時にrbashを使用したのが便利だったので、その時のメモになります。確認した環境はCentOS 7.2になります。1. rbashを使えるようにする # ln -s /bin/bash /bin/rbash # vi /etc/shells /bin/rbash ←この行を追加2. 実行シェルの変更 # su 制限するユーザ $ cssh 新しいシェル [/bin/bash]: /bin/rbash ←「/bin/rbash」を入力3. bash_profileの所有者変更および rootにユーザーを切り替えてtenda_keieiのb…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsteavevaivai.hatenablog.com%2Fentry%2F2017%2F03%2F03%2F070123&quot; title=&quot;CentOS7でユーザのコマンドに制限をかける - teruuuのブログ&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>2017-03-03 07:01:23</published>
  <title>CentOS7でユーザのコマンドに制限をかける</title>
  <type>rich</type>
  <url>https://steavevaivai.hatenablog.com/entry/2017/03/03/070123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
