<?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: user limit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484598#M213841</link>
    <description>maxdsiz is only 256megs (which is the default for 11.11. You need to change the kernel parameter maxdsiz to more than 2Gb. NOTE: ulimit reports the data segment size in Kbytes but SAM uses just plain bytes. For 2Gb ulimit to work, maxdsiz should be 2015436000, or round it up to 2100000000 and ulimit should now work OK.</description>
    <pubDate>Tue, 15 Feb 2005 13:01:50 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2005-02-15T13:01:50Z</dc:date>
    <item>
      <title>user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484589#M213832</link>
      <description>dear,&lt;BR /&gt;&lt;BR /&gt;I want to change user limit for specific user.&lt;BR /&gt;the old limit:&lt;BR /&gt;core file size (blocks)     2097151&lt;BR /&gt;data seg size (kbytes)      262144&lt;BR /&gt;file size (blocks)          unlimited&lt;BR /&gt;max memory size (kbytes)    unlimited&lt;BR /&gt;open files                  60&lt;BR /&gt;pipe size (512 bytes)       16&lt;BR /&gt;stack size (kbytes)         8192&lt;BR /&gt;cpu time (seconds)          unlimited&lt;BR /&gt;max user processes          76&lt;BR /&gt;virtual memory (kbytes)     unlimited&lt;BR /&gt;&lt;BR /&gt;I want to changet with:&lt;BR /&gt;core file size (blocks)     2097151&lt;BR /&gt;data seg size (kbytes)      2015436&lt;BR /&gt;file size (blocks)          unlimited&lt;BR /&gt;max memory size (kbytes)    unlimited&lt;BR /&gt;open files                  2048&lt;BR /&gt;pipe size (512 bytes)       16&lt;BR /&gt;stack size (kbytes)         81920&lt;BR /&gt;cpu time (seconds)          unlimited&lt;BR /&gt;max user processes          513&lt;BR /&gt;virtual memory (kbytes)     unlimited&lt;BR /&gt;&lt;BR /&gt;what command that will run to change this user limit ??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Feb 2005 20:37:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484589#M213832</guid>
      <dc:creator>piyut_1</dc:creator>
      <dc:date>2005-02-13T20:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484590#M213833</link>
      <description>ulimit is a built-in shell command so it can only be changed in the user's shell. You can make the change in the user's .profile but the user can remove the changes. The best location is in /etc/profile since users can't change the  file. Just add a test for this specific user in /etc/profile and use ulimit to make the changes.&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Feb 2005 22:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484590#M213833</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-02-13T22:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484591#M213834</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;ulimit&lt;BR /&gt;&lt;BR /&gt;look at man pages of ulimit</description>
      <pubDate>Mon, 14 Feb 2005 00:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484591#M213834</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-02-14T00:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484592#M213835</link>
      <description>thx, but i don't understand in manual page for ulimit.&lt;BR /&gt;can you give what command must I do to change user limit max user process??&lt;BR /&gt;&lt;BR /&gt;thx,&lt;BR /&gt;&lt;BR /&gt;piyut</description>
      <pubDate>Mon, 14 Feb 2005 03:51:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484592#M213835</guid>
      <dc:creator>piyut_1</dc:creator>
      <dc:date>2005-02-14T03:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484593#M213836</link>
      <description>The man page for ulimit is only for programmers. The man page for ulimit as a shell command is contained in the shell man pages, specifically, man sh-posix and man ksh. To set a limit value for core file limits, use:&lt;BR /&gt; &lt;BR /&gt;ulimit -c 2097151&lt;BR /&gt; &lt;BR /&gt;If the user types the above command, the current session environment will now limit all core dumps to 2megs. Now if these changes are needed to control a user's activity, you can modify the user's profile by adding the ulimit commands to the user's $HOME/.profile file. If the user wants to abuse the settings and either removes the commands from .profile or changes them to other values, put the commands into /etc/profile as mentioned above, something like this:&lt;BR /&gt; &lt;BR /&gt;LIMITUSER=billh&lt;BR /&gt;if [ $(ulimit -un) = $LIMITUSER ]&lt;BR /&gt;then&lt;BR /&gt; ulimit -c 2097151&lt;BR /&gt; ulimit -d 2015436&lt;BR /&gt; ... more ulimit commands ...&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;Now the above list does not look like the standard HP-UX POSIX sh or ksh ulimit command output. Is this HP-UX for PA-RISC or Itanium? Several of the above parameters are not ulimit values in HP-UX (pipe size, max user processes, virtual memory, max memory size)&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;It looks like ulimit from a Linux system. If so, you'll need to read the man pages for the shell for that user (man bash perhaps).</description>
      <pubDate>Mon, 14 Feb 2005 08:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484593#M213836</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-02-14T08:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484594#M213837</link>
      <description>Hi,&lt;BR /&gt;As alredy suggested you can set ulimit parameters in .profile file. &lt;BR /&gt;&lt;BR /&gt;1. ulimit -a &lt;BR /&gt;Display all configured values.&lt;BR /&gt;2. ulimit -c &lt;VALUE&gt;&lt;BR /&gt;Sets core file size&lt;BR /&gt;3. ulimit -d &lt;VALUE&gt;&lt;BR /&gt;Sets data seg size&lt;BR /&gt;4. ulimit -n &lt;VALUE&gt;&lt;BR /&gt;Sets Open Files&lt;BR /&gt;5. ulimit -s &lt;VALUE&gt;&lt;BR /&gt;Sets stack size&lt;BR /&gt;6. ulimit -u &lt;VALUE&gt;&lt;BR /&gt;Sets max user processes &lt;BR /&gt;7. ulimit -t &lt;VALUE&gt;&lt;BR /&gt;Sets cpu time&lt;BR /&gt;8. ulimit -v &lt;VALUE&gt;&lt;BR /&gt;Sets virtual memory &lt;BR /&gt;9. ulimit -p &lt;VALUE&gt;&lt;BR /&gt;Sets pipe size &lt;BR /&gt;&lt;BR /&gt;ulimit -p &lt;BR /&gt;This will display current Pipe Size Configured,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;/VALUE&gt;&lt;/VALUE&gt;&lt;/VALUE&gt;&lt;/VALUE&gt;&lt;/VALUE&gt;&lt;/VALUE&gt;&lt;/VALUE&gt;&lt;/VALUE&gt;</description>
      <pubDate>Mon, 14 Feb 2005 09:58:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484594#M213837</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2005-02-14T09:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484595#M213838</link>
      <description>dear,&lt;BR /&gt;&lt;BR /&gt;as root, I can changed $HOME/.profile, (#vi /home/wmuser/.profile), but when I try to su - wmuser (#su - wmuser) , there are errors like this:&lt;BR /&gt;bash: ulimit: cannot modify limit: Not owner&lt;BR /&gt;bash: ulimit: cannot modify limit: Not owner&lt;BR /&gt;bash: ulimit: cannot modify limit: Not owner&lt;BR /&gt;&lt;BR /&gt;when i try to change .profile as user, there is an error "permission denied" when i want to save file.anither error like this:&lt;BR /&gt;&lt;BR /&gt;$ ulimit -d 2015436&lt;BR /&gt;sh: ulimit: The specified value exceeds the user's allowable limit.&lt;BR /&gt;$ ksh&lt;BR /&gt;$ ulimit -d 2015436&lt;BR /&gt;ksh: ulimit: exceeds allowable limit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 21:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484595#M213838</guid>
      <dc:creator>piyut_1</dc:creator>
      <dc:date>2005-02-14T21:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484596#M213839</link>
      <description>su is not like a normal login. It is a method to attain the user's rights and ownership but your original user login is still in the background. Now it's importsant to identify who owns the .profile file (use ls -l $HOME/.profile). Also, bash has a very complex set of potential profile files, not just .profile. And again, if you are running HP-UX and not Linux, the -d option for thye data area is much smaller than 2Gb, typically 64megs for early 11.11 and 11.0. This is a kernel parameter (maxdsiz) which affects all users and all processes. You can change maxdsiz to 1000megs, even 1800megs but 32 bit programs must use special options during compilation to use more than 960 megs. And make sure that maxdsiz_64 is larger than maxdsiz.</description>
      <pubDate>Mon, 14 Feb 2005 22:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484596#M213839</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-02-14T22:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484597#M213840</link>
      <description>bill,&lt;BR /&gt;&lt;BR /&gt;.profile that i changed is belongs to wmuser, user that i want to change.&lt;BR /&gt;&lt;BR /&gt;#ls -l /home/wmuser&lt;BR /&gt;-r--r--r--   1 wmuser     wmgroup        523 Feb 15 10:16 .profile&lt;BR /&gt;&lt;BR /&gt;Configure parameter :&lt;BR /&gt;maxdsiz  268435456  268435456 Static N/A          M &lt;BR /&gt;maxdsiz_64bit 1073741824 1073741824   Static    N/A          M &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 22:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484597#M213840</guid>
      <dc:creator>piyut_1</dc:creator>
      <dc:date>2005-02-14T22:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484598#M213841</link>
      <description>maxdsiz is only 256megs (which is the default for 11.11. You need to change the kernel parameter maxdsiz to more than 2Gb. NOTE: ulimit reports the data segment size in Kbytes but SAM uses just plain bytes. For 2Gb ulimit to work, maxdsiz should be 2015436000, or round it up to 2100000000 and ulimit should now work OK.</description>
      <pubDate>Tue, 15 Feb 2005 13:01:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484598#M213841</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-02-15T13:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484599#M213842</link>
      <description>thx bill,&lt;BR /&gt;&lt;BR /&gt;yesterday, i changed kernel configurations.&lt;BR /&gt;maxdsiz :2063806464&lt;BR /&gt;maxdsiz_64bit :2063806464&lt;BR /&gt;and output of ulimit -a:&lt;BR /&gt;core file size (blocks) 2097151&lt;BR /&gt;data seg size (kbytes) 2015436&lt;BR /&gt;file size (blocks) unlimited&lt;BR /&gt;max memory size (kbytes) unlimited&lt;BR /&gt;open files 2048&lt;BR /&gt;pipe size (512 bytes) 16&lt;BR /&gt;stack size (kbytes) 8192&lt;BR /&gt;cpu time (seconds) unlimited&lt;BR /&gt;max user processes 513&lt;BR /&gt;virtual memory (kbytes) unlimited&lt;BR /&gt;&lt;BR /&gt;now, i have problem to change stack size to 81920.when I run "ulimit -s 81920" there are errors:&lt;BR /&gt;&lt;BR /&gt;bash-2.04$ ulimit -s 81920&lt;BR /&gt;bash: ulimit: cannot modify limit: Not owner&lt;BR /&gt;bash-2.04$ ksh&lt;BR /&gt;$ ulimit -s 81920&lt;BR /&gt;ksh: ulimit: exceeds allowable limit&lt;BR /&gt;$ sh&lt;BR /&gt;$ ulimit -s 81920&lt;BR /&gt;sh: ulimit: The specified value exceeds the user's allowable limit.&lt;BR /&gt;&lt;BR /&gt;what wrong bill ???&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Feb 2005 21:13:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484599#M213842</guid>
      <dc:creator>piyut_1</dc:creator>
      <dc:date>2005-02-15T21:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484600#M213843</link>
      <description>32 bit programs (as mentioned before) have severe limitations on maximum addresses. For virtually all programs, a stack needs only to be a few megs. Anything more than 10 megs sounds like a programming problem. The hard limit for a 32bit stack is 79megs.&lt;BR /&gt; &lt;BR /&gt;All of these requests sound like a program that can't run because memory isn't available. Virtually all memory problems for large programs are due to not understanding how a 32bit program is mapped. If you recompile the program as a 64bit program, these limitations go away. Without going into great details, 32bit programs have a maximum data area (regardless of higher ulimit values) of about 960mes, the stack is just under 79megs and shared memory is split among all other shared memory programs in the system. There are several compile options, as well as memory windows that can extend these limits. Have your programmers read the white papers in /usr/share/doc on proc_mgt and mem_mgt (11.00 and earlier systems)</description>
      <pubDate>Tue, 15 Feb 2005 21:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484600#M213843</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-02-15T21:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: user limit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484601#M213844</link>
      <description>dear bill,&lt;BR /&gt;&lt;BR /&gt;I think we must change parameter maxssiz and maxssiz_64bit (max stack segment for 32 bit and 64 bit) and make to reboot.&lt;BR /&gt;&lt;BR /&gt;thanks bill.</description>
      <pubDate>Tue, 15 Feb 2005 22:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/user-limit/m-p/3484601#M213844</guid>
      <dc:creator>piyut_1</dc:creator>
      <dc:date>2005-02-15T22:50:22Z</dc:date>
    </item>
  </channel>
</rss>

