On Tue, 26 Apr 2011 16:35:57 +0100, kuLa wrote:

> On 26/04/11 14:27, Артём Жирков wrote:

(...)

>> then I played a little with user specific limits: (root@server2)-(~) $
>> cat /etc/security/limits.conf | grep nofile #        - nofile - max
>> number of open files *       soft    nofile  12000
>> *    hard    nofile  12000
>> 
>> however even after reboot ulimit -n shows me old value:
>> (root@server2)-(~) $ ulimit -n
>> 1024
>> Of course, I can increase the value by ulimit -n 12000 but this change
>> won't be persistent.
>> 
>> Can anyone help me? Server run on debian 5.0.8
> 
> did you enabled limits change in pam? if not it won't let you change it.
> check it (hint grep -irn "pam_limits" /etc/pam.d/*")

Hummm, it's quite hidden :-)

sm01@stt008:~$ grep limits.conf /etc/pam.d/*
/etc/pam.d/cron:# through /etc/security/limits.conf
/etc/pam.d/login:# Sets up user limits according to /etc/security/limits.conf
/etc/pam.d/su:# Sets up user limits, please uncomment and read 
/etc/security/limits.conf

It seems to be the last one ("/etc/pam.d/su").

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.04.26.15.50...@gmail.com

Reply via email to