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

Re: Setting the maximum number files a user can open



http://kb.redhat.com/view.php?eid=378

___cliff rayman___ wrote:
> 
> 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?
> >

The documentation that I quoted in my first msg. & am referring is from
the Red Hat Linux Support Knowledgebase Search,

http://kb.redhat.com/view.php?eid=378


> 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)
> 

Yes, I did read that but was hopeful that it could be changed from what
I read in the previously mentioned documentation.

> 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.
> 

I definitely do not want to lower the value ... my user had hit the
limit.  

I'm most definitely confused from all the documentation.  I thought that
the fs.file-max value & the user's limit (ulimit -n) were related.  I've
experimented by uping the systems fs.file-max value & the user still
hits the user imposed limit, the default.  I have also gone as far as
trying to change that default value w/in /etc/profile ... no luck there
either.  How you get around this problem?  Is it possible with RH Linux
7.1?

Thanks for your input.


> --
> ___cliff rayman___cliff genwax com___http://www.genwax.com/
> 
> _______________________________________________
> Seawolf-list mailing list
> Seawolf-list redhat com
> https://listman.redhat.com/mailman/listinfo/seawolf-list





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