Increase the filesize ulimit for a user?


 
Thread Tools Search this Thread
Operating Systems AIX Increase the filesize ulimit for a user?
# 1  
Old 03-18-2008
Increase the filesize ulimit for a user?

Hi Guys,

How do I increase the filesize ulimit for user jf01474, using the same value as of user oracle?

Ex: /etc/security/limits

Code:
default:
        fsize = 4194302
        core = 2097151
        cpu = -1
        data = 262144
        rss = 65536
        stack = 65536
        nofiles = 2000

oracle:
        fsize = -1
        data = -1
        stack = -1
        fsize_hard = -1
        nofiles = -1
        nofiles_hard = -1

jf01474:

sb11277:


Last edited by bakunin; 03-19-2008 at 08:34 AM.. Reason: put code-tags around listing
# 2  
Old 03-19-2008
I have put code-tags around the listing, it makes te stanza-format easier to read.

The file /etc/security/limits works this way: a user will use the values of the "default"-stanza but explizit values overwrite these defaults for the specific user. Thereofre: copy the values of the oracle-user to the other user-id to change it to the same values:

Code:
default:
        fsize = 4194302
        core = 2097151
        cpu = -1
        data = 262144
        rss = 65536
        stack = 65536
        nofiles = 2000

oracle:
        fsize = -1
        data = -1
        stack = -1
        fsize_hard = -1
        nofiles = -1
        nofiles_hard = -1

jf01474:
        fsize = -1
        data = -1
        stack = -1
        fsize_hard = -1
        nofiles = -1
        nofiles_hard = -1

sb11277:

The user hast to log on again to use these new values.

I hope this helps.

bakunin
# 3  
Old 03-19-2008
Hi Bakunin, thanks for this, actually I know someone would answer it this way, actually what im asking is the command used using ulimit, how do I do it using ulimit command?
# 4  
Old 03-19-2008
You don't, read the ulimit man page or command reference.

You change a users settings with the chuser command.

chuser attribute=value name.

Read the chuser man page or command reference for more info.

FFS RTFM! it is much quicker than posting half a question and hoping for the correct answer.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

AIX change ulimit for a user

I have seen two different ways for changing the ulimit for a user in aix. Which one is better? Option 1 edit /etc/security/limits oracle: fsize = -1 data = -1 stack = -1 fsize_hard = -1 nofiles = -1 nofiles_hard = -1 Option 2 ... (6 Replies)
Discussion started by: cokedude
6 Replies

2. AIX

What are the ideal ulimit settings for root user in AIX?

Hi, what are the ideal/best/recommended ulimit settings for a root user in AIX? I understand that it depends on our environment. But I would like to know...what are settings you guys use in your environment for best performance. default: fsize = 2097151 core = 2097151 ... (8 Replies)
Discussion started by: System Admin 77
8 Replies

3. AIX

Maxuproc vs ulimit -u [processes(per user)]

Morning, Somebody can tell me in AIX 6.1 what is the different between the maxuproc (lsattr -El sys0 | grep max) and the for a user. Example: Oracle is limited by : #ulimit -u processes(per user) unlimited But lsattr -El sys0| grep maxuproc show me : maxuproc 16384 So... (1 Reply)
Discussion started by: bacup540
1 Replies

4. Red Hat

setting ulimit for a user

The root user runs the following ulimit -a | grep open and gets a result of open files (-n) 8162 A user runs the same command and gets a result of open files (-n) 2500 How can you set the ulimit of the user to... (2 Replies)
Discussion started by: jsanders
2 Replies

5. Shell Programming and Scripting

getting filesize

Hello, I have a script that should store file size in a variable $filesize. I don't know what is the best way to do it. I tried ls -lt myfile.txt | sed something >$filesize but I don't know how to use sed to get filesize. I know that the owner of the file is root and then we have some... (6 Replies)
Discussion started by: pppswing
6 Replies

6. Shell Programming and Scripting

filesize

I want to know if there is any unix command to view the size of the file? eg. i have a directory letter in this i have file a,b,c,d,e. i just want to know the size of file d and not any other. (3 Replies)
Discussion started by: infyanurag
3 Replies

7. Shell Programming and Scripting

FileSize ???

How do I identify if there is any content in a file? If there is nothing in a specified file, I'd like to send an email indicating that there is nothing to report. Any help appreciated. (3 Replies)
Discussion started by: Cameron
3 Replies

8. UNIX for Dummies Questions & Answers

increase ulimit fo all

SCO UNixware 7.1.1 Hi friends. I would like to increase my file ulimit for all users to unlimited. ulimit -f unlimited will only affect my current shell. How can I increase for all users, all shells ? Thanks in advance Suresh (1 Reply)
Discussion started by: sureshy
1 Replies

9. Shell Programming and Scripting

filesize

I know in php if you use the function filesize it will return the size of the file in bytes, but is there an easy way to get the size in MB. Cheers (2 Replies)
Discussion started by: jmg5
2 Replies
Login or Register to Ask a Question