Bug 746624

Summary: userdel: user bz559302 is currently logged in
Product: Red Hat Enterprise Linux 6 Reporter: Karel Volný <kvolny>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED INSUFFICIENT_DATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 6.2CC: azelinka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-02 15:48:06 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 Karel Volný 2011-10-17 10:26:50 UTC
Description of problem:
Running the test /CoreOS/util-linux-ng/Regression/bz559302-spurious-mount-warning-when-bin-mount-not-setuid I'm getting the error:

userdel: user bz559302 is currently logged in


but the testing user should NOT be logged in by that time - in fact, regular login was never done, just one command was run via su:

su -c 'mount' bz559302

and the command has exited succesfully long before userdel was run


Version-Release number of selected component (if applicable):
RHEL6.2-20111013.1

How reproducible:
always

Steps to Reproduce:
1. schedule the test /CoreOS/util-linux-ng/Regression/bz559302-spurious-mount-warning-when-bin-mount-not-setuid
  
Actual results:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

userdel: user bz559302 is currently logged in
:: [   FAIL   ] :: Removing the testing user (Expected 0, got 8)
/mnt/tests/CoreOS/util-linux-ng/Regression/bz559302-spurious-mount-warning-when-bin-mount-not-setuid
:: [   PASS   ] :: Running 'popd'


Expected results:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Cleanup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Removing the testing user
/mnt/tests/CoreOS/util-linux-ng/Regression/bz559302-spurious-mount-warning-when-bin-mount-not-setuid
:: [   PASS   ] :: Running 'popd'


Additional info:
see the testjob logs: https://beaker.engineering.redhat.com/tasks/executed?task=/CoreOS/util-linux-ng/Regression/bz559302-spurious-mount-warning-when-bin-mount-not-setuid&job_id=143598

Comment 2 Karel Volný 2011-10-20 09:15:18 UTC
while the test has been failing on four testruns in a row, the last one has passed:

https://tcms.engineering.redhat.com/run/29179/#caserun_703179

Comment 3 RHEL Program Management 2011-10-25 05:47:11 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.