Problems with ulimit

Rick Stevens rstevens at vitalstream.com
Wed Apr 14 21:38:41 UTC 2004


fedora at cjs226.com wrote:
> I'm trying to up the number of allowable open files for users.  I've added
> the following line to /etc/sysctl.conf:
>   - fs.file-max=65500
> and then added the following lines to /etc/security/limits.conf:
>   - johndoe soft nofile 4096
>   - johndoe hard nofile 32768
> Following a reboot, when johndoes logs in, he does a ulimit -H -n, but
> still sees 1024.  Likewise, when he does a ulimit -n 4096, he gets
> "bash: ulimit: cannot modify limit: Operation not permitted".
> 
> What am I missing?

Ignore the previous posting...something fell on my mouse!

Only root can change the "-n" limit.  Normal users are not permitted.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-        "And on the seventh day, He exited from append mode."       -
----------------------------------------------------------------------





More information about the fedora-list mailing list