From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5 Description of problem: I used redhat-config-users to change root's shell, and now the root user's account has expired. Everytime I try to log in, I see the following error in /var/log/messages: Apr 27 11:21:49 flarg login(pam_unix)[14632]: account root has expired (failed to change password) Apr 27 11:21:49 flarg login[14632]: User account has expired Now, I can't log in as root at all. Reproducibility: I haven't been able to fix the problem, so I cannot reproduce it yet. Version-Release number of selected component (if applicable): How reproducible: Didn't try Steps to Reproduce: 1. Open redhat-config-users 2. Uncheck "Preferences: Filter System Users and Groups" 3. Select user 'root' 4. Click on "Properties" button 5. Change "Login Shell" from "/bin/bash" to "/bin/zsh" 6. Hit "Ok" button 7. Close main "redhat-config-users" window Actual Results: 1. Open new Gnome-terminal window 2. Type 'login' 3. Window flashes a message (Too quick, I can't read the message) and closes window. 4. Look in /var/log/messages, and see "User account has expired" message Expected Results: I should be able to log in as root. Additional info: I'm looking at the redhat-config-users "User Properties" window. - Under "Account Info", "Enable account expiration" is unchecked I did not make any other changes to the 'root' user. - Under "Password Info", I see the following settings: - User last changed password on: Tue Apr 15 2003 (This is when I installed this new RedHat9 system. - Enable password expiration is CHECKED - Days before change allowed: 0 - Days before change required: 0 - Days warning before change: 0 - Days before account inactive: 0 The entry for the root user in /etc/shadow says this: root:pass_removed:12158:0:0:0:0::
Correction: >9. Type 'login' >10. Window flashes a message real quick and closes window. Should be: 9. Hit 'Ctrl-Alt-F2' to switch to new terminal window 10. Log in as 'root' with the correct passwd.
Ok, I managed to restore root's expiration information. If I change root's entry in /etc/passwd to this, I can log in as root again: root:blah:12158::99999::::
Reproducibility: - I can reproduce this every time. - I can reproduce this with every user. By default, redhat-config-users sets the config information to some really bad values. Here is the shadow entry before I used redhat-config-users. This is a brand new user that I created 40 minutes ago with redhat-config-users. Every setting was set to the default setting: rosie:asdasd:12169::99999:::: After I used redhat-config-users: rosie:asdasd:12169:0:0:7:0:: Here are some more steps to reproduce: 1. Open redhat-config-users 2. Uncheck "Preferences: Filter System Users and Groups" 3. Select any user 4. Click on "Properties" button 5. Click on "Password Info" tab 6. The default settings are as follows. I did not change anything: - User last changed password on: Sat Apr 26 2003 (This is when I installed this new RedHat9 system. - Enable password expiration is CHECKED - Days before change allowed: 0 - Days before change required: 0 - Days warning before change: 7 - Days before account inactive: 0 7. Hit "Ok" 8. Close redhat-config-users 9. Verify the differences between 'shadow' and 'shadow-': [root@host etc]# ls -l shadow shadow- -r-------- 1 root root 991 Apr 27 12:05 shadow -r-------- 1 root root 992 Apr 27 12:05 shadow- [root@host etc]# diff shadow shadow- 32c32 < rosie:123123:12169:0:0:7:0:: --- > rosie:123123:12169::99999::::
This is a duplicate of bug #88190. I'll post more information there. *** This bug has been marked as a duplicate of 88190 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.