Bug 79989

Summary: PAM can't count users - off by one in maxlogins
Product: [Fedora] Fedora Reporter: Alan Cox <alan>
Component: pamAssignee: Tomas Mraz <t8m>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: dgunchev, rnunn, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pam-0.77-63 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-27 07:10:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alan Cox 2002-12-18 14:13:32 UTC
Description of problem:

PAM limits maxlogins is off by one

Version-Release number of selected component (if applicable):

0.75-40

How reproducible:

Add pam_limits to login
Add a user limit

@* - maxlogins 2

Everyone can log in 3 times.

Comment 1 Roger Nunn 2003-11-10 12:21:46 UTC
This is also the case with Red Hat Enterprise Linux version 3
and Red Hat Linux 9

The testing is the same, the logins were via virtual console.


Comment 4 Doncho Gunchev 2004-05-29 23:01:18 UTC
I had the same problem with Red Hat Linux 8.

Comment 5 Tomas Mraz 2004-09-22 08:58:52 UTC
Actually in the current devel packages it's the other way around. It
allows user to login only maxlogins-1 times.

upstream pam-0.77 fixed it over pam-0.75 but as part of grubb_leak
patch it was 'fixed' once more ;-) FC2 should actually be fine.