|
Home > Archive > Unix Programming > May 2007 > ulimit open file descriptor.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
ulimit open file descriptor.
|
|
| raxitsheth2000@gmail.com 2007-05-30, 7:17 am |
| Hi,
Solaris 8, sparc
I want more open file descriptor and i changed the settings in /etc/
system.
but when i see ulimit -n it is still showing old.
I tried to change ulimit -n 32765 (this is new value) but it is
telling i am not owner.
I want to run the process from Non-Root Id. if i do su , change
ulimit -n 32765 then exit, as shell is exit, the value is lost.
how can I set ulimit for Non-Root user, ( i am having root id/pwd ,
Process must run from non-root id)
(there is no /etc/security/limit.conf file on my system. ! )
--Raxit
| |
| David Schwartz 2007-05-30, 7:17 am |
| On May 30, 4:03 am, raxitsheth2...@gmail.com wrote:
> I want to run the process from Non-Root Id. if i do su , change
> ulimit -n 32765 then exit, as shell is exit, the value is lost.
Then don't exit the shell.
> how can I set ulimit for Non-Root user, ( i am having root id/pwd ,
> Process must run from non-root id)
You had it. Use 'su' to become root, change ulimit, then exec a shell
as a normal user (with 'su' or a similar tool).
If you have to do this a lot and it's always the same program, create
a wrapper that's suid root. The wrapper should set the ulimit to what
you want it to be, drop permissions, and then run the program as the
appropriate user. It's probably best to find a wrapper that's already
been written as there are some tricks to getting it right.
DS
| |
| raxitsheth2000@gmail.com 2007-05-30, 1:25 pm |
|
David Schwartz wrote:
> On May 30, 4:03 am, raxitsheth2...@gmail.com wrote:
>
>
> Then don't exit the shell.
I need to do frequently.
assume I am normal, non-root unix user,
i want to have more open fd limit
what should my admin need to change in System so that when i login
from my id, i would get this limit.
>
>
> You had it. Use 'su' to become root, change ulimit, then exec a shell
> as a normal user (with 'su' or a similar tool).
su is disable for me. !
>
> If you have to do this a lot and it's always the same program, create
> a wrapper that's suid root. The wrapper should set the ulimit to what
> you want it to be, drop permissions, and then run the program as the
> appropriate user. It's probably best to find a wrapper that's already
> been written as there are some tricks to getting it right.
>
> DS
--Raxit
| |
| Quentin Godfroy 2007-05-30, 1:25 pm |
| >I want more open file descriptor and i changed the settings in /etc/
>system.
[snip]
> su is disable for me. !
You have the rights to change files in /etc, but you can't become
root. Hum...
| |
| raxitsheth2000@gmail.com 2007-05-30, 1:25 pm |
|
Quentin Godfroy wrote:
>
> [snip]
>
>
> You have the rights to change files in /etc, but you can't become
> root. Hum...
Oh Big Catch...!!! really sorry, but this is because i am same user
who is root and non-root id.
assume, I am non-root (and not having root passwd), I asked by admin
to change /etc/system (to increase system limit),he has done,
now I asked my admin to give me login by which i came to bash/csh/ksh
with more open fd limit.
what should my admin need to do.
--Raxit
|
|
|
|
|