I installed ORACLE/Solaris 11 on my server. After installation I created an additional account for sysadmin. I then did the #passwd -x -1 command for the root role, and my two other user accounts. I did this after the first installation locked me out saying the user account had expired. I've also installed SunRay Server software on the server as well. Anyhow, I rebooted and immediately got the "Account Expired" when trying to login. Any ideas of how to get this problem resolved would be greatly appreciated.
Ah... good ol'Solaris and it's wonderful default policies.
When you created the users on a new system install, there was an account expiration time set. This is in the /etc/shadow file, I believe. You will need to unlock the account and then set an expiration time far far into the future.
I've tried the "never expires" flag in the past, but it's never worked as expected.
You can fix it on a system you've been locked out of by vi'ing the /etc/passwd file after booting into recovery mode. Helps alot if you have a clean working Solaris box you can create a test account and set the expiration flag properly on, and transplant that.
Yes, the above is a bit of a fudge.
Corrected file from /etc/passwd to /etc/shadow.
What does one of the locked accounts look like? (A shadow line, but without the password hash)?