Find the answer to your Linux question:
Results 1 to 4 of 4
OK so I ran Bastille, it recommended setting limits on core size and number of user processes. this sounded reasonable to me so I agreed. It mentioned that the settings ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2003
    Location
    New London, CT USA
    Posts
    40

    User Limits


    OK so I ran Bastille, it recommended setting limits on core size and number of user processes. this sounded reasonable to me so I agreed. It mentioned that the settings would be in /etc/security/limits.conf and that I could edit them later. Sounds good.

    Later that night out of curiosity I typed ulimit -a in a bash session and I got this:

    nelamvr6@linux:~> ulimit -a
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    file size (blocks, -f) unlimited
    max locked memory (kbytes, -l) 32
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    stack size (kbytes, -s) unlimited
    cpu time (seconds, -t) unlimited
    max user processes (-u) 8191
    virtual memory (kbytes, -v) unlimited

    Max user processors are 8191? Bastille recommended 150!

    So I took a look at /etc/security/limits.conf and found this:

    # prevent core dumps
    * hard core 0

    #limit user processes per user to 150
    * soft nproc 100
    * hard nproc 150


    So what gives? Why are these limits not enforced? I'm running SUSE 10.0 with KDE as my desktop.

    TIA

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    Either send bastille SIGHUP (which should restart it) or just start and stop it. This should solve your problem.

  3. #3
    Just Joined!
    Join Date
    Aug 2003
    Location
    New London, CT USA
    Posts
    40
    Quote Originally Posted by lakerdonald
    Either send bastille SIGHUP (which should restart it) or just start and stop it. This should solve your problem.
    I actually did run Bastille again, reafriming the answers to my questions. Then I did a "ulimit -a" again and got the same results.

  4. #4
    Just Joined!
    Join Date
    Aug 2003
    Location
    New London, CT USA
    Posts
    40
    OK, got it sorted.

    I ended up adding lines to /etc/profile

    Thanks for the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •