sshd and /etc/security/limits.conf



got a strange problem when setting user limits.

/etc/security/limits.conf:
* soft memlock unlimited
* hard memlock unlimited
* soft nofile 8192
* hard nofile 8192

(ssh-login as service)
service@test ~> ulimit -n
1024
service@test ~> su -
Password:
root@test ~> /etc/init.d/sshd restart
Stopping sshd: [ OK ]
Starting sshd: [ OK ]

(logging off)
(ssh-login as service)
service@test ~> ulimit -n
8192

why do i need to restart sshd to get the real limits and how can i
change that?

.



Relevant Pages

  • Re: permanet file descriptor limit
    ... Is there any difference between the o/p returned from 'ulimit' when you ... Marco wrote: ... * soft nofile 1024 ... I want to change permanently the number of open files my system can ...
    (comp.os.linux.misc)
  • Re: [opensuse] Re: How to change File Descriptor in booting process?
    ... machine hosting a squid proxy: ... soft nofile 1024 ... htd@liesel:~> ulimit -n ... I use the stock kernel of OpenSuSE 11.1. ...
    (SuSE)
  • Re: Raising maximum file descriptors
    ... change my ulimit, ... * soft nofile 1024 ... You should then be able to increase the file descriptor limits using: ... The above command will set the limits to the hard limit specified ...
    (Debian-User)
  • Re: Raising maximum file descriptors
    ... On Sunday 06 August 2006 14:11, Andreas Fester wrote: ... change my ulimit, ... soft nofile 1024 ... Jabber: Because it's time to move forward http://ursine.ca/Ursine:Jabber ...
    (Debian-User)