Re: Setting the maximum number files a user can open

___cliff rayman___ <[email protected]> Fri, 02 May 2003 11:01:59 -0700
Newsgroups gmane.linux.redhat.release.seawolf
Organization general wax, inc.
Message-ID <[email protected]>
Simone Crider wrote:

>system files as root, but that the "regular user" cannot change the
>limit, (execute the "ulimit -n 16000" cmd), once the system
>administrator granted the user the right.
>
yes.  i believe this is true. it cannot be changed by a regular user on 
linux.  

>
>  
>
>>I log out & then login as a regular user & get the following error ...
>>
>>$ ulimit -n 2048
>>bash: ulimit: cannot modify limit: Operation not permitted
>>
>>Appears that because I am a non-root user, that I cannot perform this
>>command.  I thought that by changing the hard limit that a regular user
>>would then be able to modify this value, at least to the hard limit?
>>
>>    
>>
>
>According to the documentation, the regular user should be able to do
>this, correct?
>
i do not see that in my documentation.  check out:
man bash
/ulimit
/\-n

which reads:
-n     The maximum number of open file descriptors (most systems do not 
allow this value to be set)


from some experimentation, you can lower the limit from the values 
provided by
root's system settings, but you cannot raise it.  what happens when you 
issue:
ulimit -n

this should give you the current setting, which based on your previous 
e-mails, you
would like to read 16000.

-- 
___cliff [email protected]___http://www.genwax.com/