<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ulimit in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590144#M18889</link>
    <description>Remove the commands from the profile and restart the sshd service. &lt;BR /&gt;&lt;BR /&gt;service sshd restart.&lt;BR /&gt;&lt;BR /&gt;As I said, only root can raise the ulimit parameters, so this won't work on other users.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Jul 2005 13:55:30 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2005-07-26T13:55:30Z</dc:date>
    <item>
      <title>ulimit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590141#M18886</link>
      <description>Red Hat Enterprise Linux 3.0 for x86.&lt;BR /&gt;&lt;BR /&gt;I want to set "ulimit -u 16384 -n 16384" from a non root (oracle) session.&lt;BR /&gt;&lt;BR /&gt;I have modified the following:&lt;BR /&gt;&lt;BR /&gt;vi /etc/profile&lt;BR /&gt;...&lt;BR /&gt;if [ $USER = "oracle" ]; then&lt;BR /&gt;        if [ $SHELL = "/bin/ksh" ]; then&lt;BR /&gt;              ulimit -p 16384&lt;BR /&gt;              ulimit -n 16384&lt;BR /&gt;        else&lt;BR /&gt;              ulimit -u 16384 -n 16384&lt;BR /&gt;        fi&lt;BR /&gt;fi&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;vi /etc/security/limits.conf&lt;BR /&gt;...&lt;BR /&gt;*               soft    nproc           2047&lt;BR /&gt;*               hard    nproc           16384&lt;BR /&gt;*               soft    nofile          2048&lt;BR /&gt;*               hard    nofile          16384&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;vi /etc/pam.d/login&lt;BR /&gt;...&lt;BR /&gt;session    required     /lib/security/pam_limits.so&lt;BR /&gt;&lt;BR /&gt;The Behavior is the this:&lt;BR /&gt;&lt;BR /&gt;A) When I open a root session and switch (su) to user oracle, there is no problem and the "ulimit -a" shows the correct values.&lt;BR /&gt;&lt;BR /&gt;B) When I open a session directly with oracle (not first with root) I get the following error message at login time:&lt;BR /&gt;&lt;BR /&gt;-bash: ulimit: max user processes: cannot modify limit: Operation not permitted&lt;BR /&gt;&lt;BR /&gt;The same error retunrs if I try to set manually the "ulimit -u 16384 -n 16384".&lt;BR /&gt;&lt;BR /&gt;Any idea about this problem?</description>
      <pubDate>Tue, 26 Jul 2005 10:17:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590141#M18886</guid>
      <dc:creator>Tonatiuh</dc:creator>
      <dc:date>2005-07-26T10:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590142#M18887</link>
      <description>Only a user with superuser privileges may increase the ulimit.&lt;BR /&gt;&lt;BR /&gt;If you defined the limits in /etc/security/limits.conf, those limits should be available to users, they don't need to run the ulimit command. The ulimit command in the profile is not necessary.&lt;BR /&gt;&lt;BR /&gt;If you are logging in through SSH, set:&lt;BR /&gt;&lt;BR /&gt;UsePrivilegeSeparation no&lt;BR /&gt;&lt;BR /&gt;in /etc/ssh/sshd_config</description>
      <pubDate>Tue, 26 Jul 2005 10:49:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590142#M18887</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-26T10:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590143#M18888</link>
      <description>The "ulimit" in the profile is just to set the limits automatically at opening session.&lt;BR /&gt;&lt;BR /&gt;And yes, you are right; I am openin my session through ssh. I have set the "UsePrivilegeSeparation no" in /etc/ssh/sshd_config but the error message is still present.</description>
      <pubDate>Tue, 26 Jul 2005 11:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590143#M18888</guid>
      <dc:creator>Tonatiuh</dc:creator>
      <dc:date>2005-07-26T11:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: ulimit</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590144#M18889</link>
      <description>Remove the commands from the profile and restart the sshd service. &lt;BR /&gt;&lt;BR /&gt;service sshd restart.&lt;BR /&gt;&lt;BR /&gt;As I said, only root can raise the ulimit parameters, so this won't work on other users.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Jul 2005 13:55:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ulimit/m-p/3590144#M18889</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-07-26T13:55:30Z</dc:date>
    </item>
  </channel>
</rss>

