<?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: SSHD / ulimit problem in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459955#M15822</link>
    <description>Thanks, Don.&lt;BR /&gt;That was it!!&lt;BR /&gt;&lt;BR /&gt;I'd never heard of "UsePrivilegeSeparation" before.&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv</description>
    <pubDate>Tue, 11 Jan 2005 18:11:27 GMT</pubDate>
    <dc:creator>Bob_Vance</dc:creator>
    <dc:date>2005-01-11T18:11:27Z</dc:date>
    <item>
      <title>SSHD / ulimit problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459953#M15820</link>
      <description>Running RedHat AS3 update3 on HP Itanium 1600.&lt;BR /&gt;SSHD is openssh-server-3.6.1p2-33.30.1.ia64.rpm&lt;BR /&gt;&lt;BR /&gt;I have an issue with SSHD not working properly with 'ulimit'.&lt;BR /&gt;It seems that SSHD ignores the limits file.&lt;BR /&gt;I have the PAM file set up for SSHD.&lt;BR /&gt;&lt;BR /&gt;Here is PAM file:&lt;BR /&gt;&lt;BR /&gt;jamaica1 ## cat /etc/pam.d/sshd  | sed 's/^/... /'&lt;BR /&gt;... #%PAM-1.0&lt;BR /&gt;... auth       required     pam_stack.so service=system-auth&lt;BR /&gt;... auth       required     pam_nologin.so&lt;BR /&gt;... account    required     pam_stack.so service=system-auth&lt;BR /&gt;... password   required     pam_stack.so service=system-auth&lt;BR /&gt;... session    required     pam_stack.so service=system-auth&lt;BR /&gt;... session    required     pam_limits.so&lt;BR /&gt;... session    optional     pam_console.so&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is my /etc/security/limits.conf (after a reboot):&lt;BR /&gt;&lt;BR /&gt;jamaica1 ## grep -Ev '^#' /etc/security/limits.conf |grep -vE '^$'|sed 's/^/... /'  &lt;BR /&gt;... *               soft      nproc      2047&lt;BR /&gt;... *               hard      nproc      32000&lt;BR /&gt;... *               soft      nofile      3000&lt;BR /&gt;... *               hard      nofile     65536&lt;BR /&gt;... oracle               soft      nproc      18000&lt;BR /&gt;... oracle               hard      nproc      20000&lt;BR /&gt;... oracle               soft      nofile     60000&lt;BR /&gt;... oracle               hard      nofile     65536&lt;BR /&gt;&lt;BR /&gt;I have the following 2 lines at the end of ~oracle/.bash_profile:&lt;BR /&gt;    echo ulimit -u -n&lt;BR /&gt;         ulimit -u -n&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Upon logging in as "oracle" via SSH, we get:&lt;BR /&gt;&lt;BR /&gt;... max user processes            (-u) 16331&lt;BR /&gt;... open files                    (-n) 1024&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now try some other various logins:&lt;BR /&gt;&lt;BR /&gt;[oracle@jamaica1 oracle]$ su - oracle&lt;BR /&gt;... Password: &lt;BR /&gt;... ulimit -u -n&lt;BR /&gt;... max user processes            (-u) 18000&lt;BR /&gt;... open files                    (-n) 60000&lt;BR /&gt;&lt;BR /&gt;[oracle@jamaica1 oracle]$ rsh jamaica1&lt;BR /&gt;... Last login: Mon Jan 10 17:02:36 from bobvlxp.cnetics.com&lt;BR /&gt;... ulimit -u -n&lt;BR /&gt;... max user processes            (-u) 18000&lt;BR /&gt;... open files                    (-n) 60000&lt;BR /&gt;&lt;BR /&gt;[oracle@jamaica1 oracle]$ ssh oracle@jamaica1&lt;BR /&gt;... ulimit -u -n&lt;BR /&gt;... max user processes            (-u) 16331&lt;BR /&gt;... open files                    (-n) 1024&lt;BR /&gt;&lt;BR /&gt;Try from console:&lt;BR /&gt;&lt;BR /&gt;jamaica1 login: oracle&lt;BR /&gt;... Password: &lt;BR /&gt;... Last login: Mon Jan 10 17:03:14 from jamaica1&lt;BR /&gt;... ulimit -u -n&lt;BR /&gt;... max user processes            (-u) 18000&lt;BR /&gt;... open files                    (-n) 60000&lt;BR /&gt;[oracle@jamaica1 oracle]$ tty&lt;BR /&gt;... /dev/ttyS2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As you can see, both a local login (su or console) and RSH&lt;BR /&gt;work fine, but SSHD simply ignores the limits file.&lt;BR /&gt;&lt;BR /&gt;The behavior is the same for BASH, ZSH, and KSH, so it's not the shell.&lt;BR /&gt;&lt;BR /&gt;I cannot figure out where SSHD is getting these values,&lt;BR /&gt;... max user processes            (-u) 16331&lt;BR /&gt;... open files                    (-n) 1024&lt;BR /&gt;&lt;BR /&gt;The work-around is simply to do a 'su - oracle' after login,&lt;BR /&gt;but that's a little bit of a pain.&lt;BR /&gt;Besides, a body wants to know;&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv</description>
      <pubDate>Mon, 10 Jan 2005 18:45:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459953#M15820</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-01-10T18:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: SSHD / ulimit problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459954#M15821</link>
      <description>I ran into this while setting up ulimits for oracle users.. &lt;BR /&gt;&lt;BR /&gt;In the sshd_config, set&lt;BR /&gt;&lt;BR /&gt;UsePriviledgeSepatation no&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;BR /&gt;service sshd restart&lt;BR /&gt;&lt;BR /&gt;it should work. Checkout the man for sshd_config and it give an explaination.. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.linuxtech.cc" target="_blank"&gt;www.linuxtech.cc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Jan 2005 15:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459954#M15821</guid>
      <dc:creator>Don_89</dc:creator>
      <dc:date>2005-01-11T15:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: SSHD / ulimit problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459955#M15822</link>
      <description>Thanks, Don.&lt;BR /&gt;That was it!!&lt;BR /&gt;&lt;BR /&gt;I'd never heard of "UsePrivilegeSeparation" before.&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv</description>
      <pubDate>Tue, 11 Jan 2005 18:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459955#M15822</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-01-11T18:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: SSHD / ulimit problem</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459956#M15823</link>
      <description>Now i just have to figure out the ramifications of disabling it.&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv</description>
      <pubDate>Tue, 11 Jan 2005 18:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sshd-ulimit-problem/m-p/3459956#M15823</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2005-01-11T18:12:49Z</dc:date>
    </item>
  </channel>
</rss>

