ulimit   quesiton

Posted on 2011-05-10
Last Modified: 2012-06-27
can we change the ulimit parameter for specific user or is it system wide setup?
Question by:mokkan
    LVL 8

    Assisted Solution

    in /etc/security/limits

    add the user and set limits

            fsize =
            data =
            stack =
            fsize_hard =
            nofiles =
            nofiles_hard =

    newuser will have to relogin to get new settings

    LVL 68

    Accepted Solution

    ulimit is user specific.

    Set it (logged in as root) in /etc/limits.conf on a per-user basis.

    Here is the manpage of limits.conf, with examples:

    LVL 38

    Assisted Solution

    Just one note:
    Most of modem Linux put limits.conf under /etc/security/limits.conf.
    find /etc/ -name limits.conf
    will tell where the limits.conf locates at your system.

    ulimit can be system wide or per user base.
    In limits.conf
    System wide:
    * soft core  0

    Per user:
    user1 soft core 0

    Author Closing Comment

    thank you

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now