*** First you should identify whether you are using xdm,gdm, or kdm.

Try each of these:

ps -auxw | grep -v grep | grep xdm
ps -auxw | grep -v grep | grep gdm
ps -auxw | grep -v grep | grep kdm


One will produce output. That's the Window Manager you are using. So
assuming it's xdm you would look for an xdm file in /etc/pam.d and add the
session line. Also you should put the session just before the first
session line. Something like this:

> auth       required     /lib/security/pam_stack.so service=system-auth
> auth       required     /lib/security/pam_nologin.so
> account    required     /lib/security/pam_stack.so service=system-auth
> password   required     /lib/security/pam_stack.so service=system-auth
> session    required     /lib/security/pam_limits.so
> session    required    /lib/security/pam_stack.so service=system-auth
> session    optional     /lib/security/pam_console.so


That should do it assuming your xdm/kdm/gdm was compiled with PAM support
(I know xdm is by default on RH 7.2 the others probably are too).




On Thu, 19 Sep 2002, Delz wrote:

> Hi John,
> 
> I'm using KDE and there's no kdm under /etc/pam.d but only a kde file which
> looks like this :
> 
> #%PAM-1.0
> auth       required     /lib/security/pam_stack.so service=system-auth
> auth       required     /lib/security/pam_nologin.so
> account    required     /lib/security/pam_stack.so service=system-auth
> password   required     /lib/security/pam_stack.so service=system-auth
> session    required    /lib/security/pam_stack.so service=system-auth
> session    optional     /lib/security/pam_console.so
> 
> I inserted the line you mentioned as follows :
> 
> 
> When I tried logging in using the same username on another workstation it
> still managed to login even though I
> have an active session of the same user. I even did a reboot of my server a
> couple of times already but to no
> avail. Any idea on what might be the problem??
> 
> 
> 
> ----- Original Message -----
> From: "John_Cuzzola" <[EMAIL PROTECTED]>
> To: "Delz" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, September 19, 2002 11:08 AM
> Subject: Re: [Ltsp-discuss] Session Limit in LTSP not working
> 
> 
> > On Thu, 19 Sep 2002, Delz wrote:
> >
> > > Hi,
> > >
> > > I'm using Redhat 7.2 and I'm having some problems with users limiting
> > > maximum logins to only 1 using LTSP. I have configured
> > > /etc/security/limits.conf to use the following :
> > >
> > > user1   hard    maxlogins       1
> > > user1   hard    rss             30000
> > > user1   hard    nproc           100
> > >
> > > and I've tried using telnet and ssh to login to the server and it's
> working,
> > > it doesn't allow another session when there's an active login session
> > > present using the same username. But booting from a floppy then logging
> in
> > > using X, it doesn't restrict the login session to only one & I'm still
> able
> > > to login using the same username from another workstation. Anyone who
> has an
> > > idea on how to go about this? Hoping for your help.......
> > >
> > > Regards,
> > >
> > > Delz
> >
> >
> > *** Delz,
> >
> >  cd /etc/pam.d
> >
> > edit the xdm file (or kdm or gdm depending on what you are using)
> >
> > add the following line:
> >
> > session    required     /lib/security/pam_limits.so
> >
> >
> > where you put it counts. Place it just before the FIRST session line you
> > see. That should do it.
> >
> >
> >
> >
> >
> >
> > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.NET email is sponsored by: AMD - Your access to the experts
> > > on Hammer Technology! Open Source & Linux Developers, register now
> > > for the AMD Developer Symposium. Code: EX8664
> > > http://www.developwithamd.com/developerlab
> > > _____________________________________________________________________
> > > Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
> > >       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> > > For additional LTSP help,   try #ltsp channel on irc.openprojects.net
> > >
> >
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.openprojects.net
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.openprojects.net

Reply via email to