07-14-2011 05:46 AM
I try to set ulimit -d for non-root user to unlimited.
Other tunables done with /etc/profile (/home/[username]/profile can't do this for Stack Size f.e.).
How to do one of things:
1) I didn't find document that says "You can't [ulimit -d unlimited] for non-root".
2) I don't know how grant PRIV_LIMIT for this user (man 5 privileges)
3) Set this limit to unlimited.
I know, that:
1) Shell tunable
2) Only for 32-bit apps
3) Can't really exceed maxdsiz
4) This is just Oracle support requirement
Solved! Go to Solution.
07-14-2011 07:39 AM
Guess you are going to have to pick a number.
Have you tried doing this in .profile and/or /etc/profile
You might be able to do this for all users in that way, but this might break stuff.
Please try and do it on the command line, provide command and system response.
You may need to consult Oracle support for a solution.
Owner of ISN Corporation
07-14-2011 09:22 PM - edited 07-16-2011 03:59 AM
>I try to set ulimit -d for non-root user to unlimited.
You could set it to 4 Gb, the max for 32 bit. This is maxdsiz(5).
>1) I didn't find document that says "You can't [ulimit -d unlimited] for non-root".
You need to make N logical inferences to get that. But it's pretty clear from sh-posix(1) & setrlimit(2).
>2) I don't know how grant PRIV_LIMIT for this user (man 5 privileges)
It seems you grant privileges to executables not users, using setfilexsec(1m).
>3) Set this limit to unlimited.
You would have to write a program to check the user, call setrlimit(2), then fork and exec a shell or the user's application.
(No kudos to go with the solution?)