[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Setting the maximum number files a user can open



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 rayman___cliff genwax com___http://www.genwax.com/







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]