Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kenyeeOffline
Post subject: Can't increase #files via "ulimit -n"?  PostPosted: 04.07.2011, 19:39



Joined: 2010-09-29
Posts: 87

Status: Offline
Is the aptosid kernel limited to 1024 file handles per user?
This implies it's not:
$ cat /proc/sys/fs/file-max
372477
but I haven't been able to bump up the max file handles Razz

I checked that my user is set up in /etc/security/limits.conf so that it's allowed to specify a large #files:
notes soft nofile 20000
notes hard nofile 49152

but when I do the ulimit -n after su'ing to that user, I get this cryptic error:
ulimit: open files: cannot modify limit: Operation not permitted

The only thing unusual I've found is the pam_limits shared library referenced by /etc/pam.d/login is here:
/lib/x86_64-linux-gnu/security/pam_limits.so
instead of /lib64/security/pam_limits.so

p.s., ok, not a kernel limit...I can do it as root, but not the user I want to do it for Sad
# ulimit -n 20000
# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 29103
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 20000

I'm guessing it's a pam issue, but I'm not sure what else to check...
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio