Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Jan 22 09:26:32 localhost sshd(pam_unix): session opened for user depraved by (uid=501)
Jan 22 09:26:32 localhost pam_limits: setrlimit 11 to -1073753628 failed: Operation not permitted
Jan 22 09:26:32 localhost sshd: fatal: PAM session setup failed: Permission denied
thats what my log said...I was told to leave the lines uncommented that I added in etc/security/limits.conf which looks like this
#<domain> <type> <item> <value>
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4 #depraved hard nofile 4096 #depraved soft nofile 4096
# End of file
(comments I added are in italic)
When I uncomment them, I cant relogin into the shell. But it works fine if I recomment them. But my ulimit -n still shows 1024.
Also I added session required pam_limits.so to /etc/pam.d/login, /etc/pam.d/sshd, & /etc/pam.d/su. But still the ulimit -n still shows 1024.
Am I even doing this right? basically I want my maxuser count to raise to 4096 lol, becoming quite the task for me. Any help is appreciated guys. Again i'm running Mandrake 10.0(very new to linux lol)
If you leave the lines commented out, then they're not going to have any effect whatsoever. What exactly are you trying to do here? By playing with the nofile limit you're limited the max number of open files a user can have, not the maximum number of users. Is this what you mean to do? AFAIK there's no (practical) limit on the number of users that can be logged in simultaneously (well, not quite true, my RH boxes only configure 2048 pseudo-ttys so that does limit the number of login sessions, but unbless you're running a major datacenter server I would think 2000 active sessions would be plenty).
I want to raise the limit of maximum users on my UnrealIRCd. And I heard to do this I would need to raise the limit on my box. I want to raise it to 4069, or atleast just learn how. So there can be a maximum of 4069 users allowed to connect to the server. Thanks for any help.
Good job figuring out that depraved is trying to adjust the number of logins. I would never have figured that out by the first post. You must be a mind reader.
I thought that you were logging on at the console. The messages from /var/log/messages show that you are using ssh login over the network. Also, it is clear that pam is involved. I have a lot to learn about pam. My SuSE 9.2 system has pam documentation here:
Although it now seems that you really don't want to adjust the number of open files allowed per user, so playing with pam may or may not be relevant.
Last edited by stress_junkie; 01-22-2006 at 01:57 PM.