<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ytooyama</author_name>
  <author_url>https://blog.hatena.ne.jp/ytooyama/</author_url>
  <blog_title>ytooyamaのブログ</blog_title>
  <blog_url>https://ytooyama.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Ubuntu</anon>
    <anon>sudo</anon>
    <anon>ulimit</anon>
  </categories>
  <description>Ubuntuはデフォルトではrootユーザーが許可されておらず、管理権限の必要なコマンドではsudoを使ってコマンドを使います。しかしulimitコマンドはsudoでは実行できずという経緯があり、どうやったら実行できるかと方法を調べていたのですがさすがstackoverflow、ズバリな回答が見つかりました。 stackoverflow.com $ sudo sh -c &quot;ulimit -n 5000 &amp;&amp; exec su $LOGNAME&quot; ちなみにsudo -iで管理権限になって、ulimit -n 5000でも可能です。 $LOGNAMEに何が格納されているかはenvコマンドもしくは「e…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytooyama.hatenadiary.jp%2Fentry%2F2016%2F04%2F16%2F194223&quot; title=&quot;sudo: ulimit: command not found - ytooyamaのブログ&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>2016-04-16 19:42:23</published>
  <title>sudo: ulimit: command not found</title>
  <type>rich</type>
  <url>https://ytooyama.hatenadiary.jp/entry/2016/04/16/194223</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
