if you cannot login anymore via console, try to mount the disk to another system understanding this filesystem, then simply change /etc/shadow (on the mounted disk!) and remove the password there
Main Topics
Browse All TopicsExperts Exchange:
I try to su to root and get:
Password for user 'root' has expired - use passwd(1) to update it
This is Solaris 9. Nsswitch.conf is files ldap on passwd and group. /etc/default/login disallows root logins. Even though I know the root password it will not let me su to root and change the expired password.
Please advise.
Trav
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
why can't you just treat it like a lost password?
Go ahead and try something like this:
Stop sweating :-)
Grab a Solaris cdrom and put it in your cdrom drive
When feasible, press Stop+a
At the 'ok' prompt, run "boot cdrom -s"
cd /tmp
mkdir /tmp/foo
mount /dev/dsk/c0t0d0s0 /tmp/foo (where c0t0d0s0 is the location of your root drive)
cp /tmp/foo/etc/shadow /tmp/foo/etc/shadow.oops
vi /tmp/foo/etc/shadow and delete the encrypted password on the root account
cd /; umount /tmp/foo
Reboot, login with root and no password, and reset your root password
Business Accounts
Answer for Membership
by: net_sec_guruPosted on 2005-07-21 at 10:32:37ID: 14495053
Log in via console and reset the password
I think it's dangerous to have password aging on root. Root should not be logged into regularly so it's difficult to know when the next time it'll log in. So I have a policy where root is to be changed but don't turn password aging on for that account.