IRCd allow more than 1024 problem
IRCd allow more than 1024 problem
when i ulimit -n 4096 on root it works but when i log out and log back in its set back to 1024.. why is this?
You do not want to run an IRC server on RedHat 9.pete212 wrote:running redhat 9
That version is *way* outdated, RedHat dropped it several months ago meaning that no updates and no security updates will be released for it.
Do yourself a favor and upgrade that box first.
With kind regards, Peter
NekoNet IRC
www.neko-net.org / [url=irc://irc.neko-net.org:6667]irc.neko-net.org[/url]
NekoNet IRC
www.neko-net.org / [url=irc://irc.neko-net.org:6667]irc.neko-net.org[/url]
Open these files in your favorite editor:
/etc/pam.d/login
/etc/pam.d/sshd
/etc/pam.d/su
/etc/pam.d/cron
/etc/pam.d/screen (if screen is installed, and might not be needed anyway)
Check if you have this line in them:
If it's not there, add it.
Note: I strongly suggest you make backups of these files. And also keep one terminal/ssh window/whatever logged in, in case something goes wrong and you get locked out you have that one window to restore the backups.
/etc/pam.d/login
/etc/pam.d/sshd
/etc/pam.d/su
/etc/pam.d/cron
/etc/pam.d/screen (if screen is installed, and might not be needed anyway)
Check if you have this line in them:
Code: Select all
session required pam_limits.so
Note: I strongly suggest you make backups of these files. And also keep one terminal/ssh window/whatever logged in, in case something goes wrong and you get locked out you have that one window to restore the backups.