Bug 152420

Summary: su doesn't work for root on expired accounts
Product: [Fedora] Fedora Reporter: Karel Zak <kzak>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: mattdm, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: coreutils-5.97-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-07-11 14:28:48 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Karel Zak 2005-03-29 06:58:32 EST
# usermod -e 1990-01-01 smith
# su - smith
Your account has expired; please contact your system administrator
su: incorrect password
# usermod -e 2010-01-01 smith
# su - smith

I think for UID=0 should be possible do 'su' for all accounts include expired
accounts too. The message "...contact your system administrator" is funny if
you're root :-)
Comment 1 Tomas Mraz 2005-03-29 07:05:46 EST
You can add a line with "account    sufficient   pam_succeed_if.so uid=0 use_uid
to the /etc/pam.d/su before the account required line. This will enable su-ing
into the expired accounts from root (uid 0).
Comment 2 Matthew Miller 2006-07-10 19:39:56 EDT
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!
Comment 3 Tomas Mraz 2006-07-11 02:25:14 EDT
This still applies.