Public bug reported:

1. 2.6.24-19-server, last updates applied

2. don`t know responsible package

3. In /etc/security/limits.conf:
myuser hard nofile 65500

4. After reboot:
$ulimit -n
1024


I attempted various methods to change ulimits -n permanently. So on forums I 
read that following should be done: uncomenting and adding in /etc/pam.d/login 
and common-session
session    required   pam_limits.so

After reboot:
$ulimit -n
1024

Didn`t work. Trying the sysctl method:
$sudo nano /etc/sysctl.conf
#max number of open files
fs.file-max = 65500

$sudo sysctl -p
$ulimit -n
1024

but 
$cat /proc/sys/fs/file-max
65500

Reboot.
$ulimit -n
1024
$cat /proc/sys/fs/file-max
65500

So... didn`t work either. Trying to set "ulimits -n" just for current session:
$ulimit -n 65500
bash: ulimit: open files: cannot modify limit: Operation not permitted

$sudo ulimit -n 65500
sudo: ulimit: command not found

Testing if the same problem for root:
$sudo su
#ulimit -n
1024

#ulimit -n 65500
#ulimit -n
65500

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: max-open-files ulimit

-- 
Increase ulimit -n
https://bugs.launchpad.net/bugs/283823
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to