On Wed, 2009-10-21 at 04:11 -0700, Abid R S wrote:
> i gave a command (passwd -d) on the bash shell with the root's role, as i
> dont like to be prompted for passwd again and again.
> now, i m not able to login to openSolaris, as its saying, password or userId
> is not correct.
>From the passwd manpage:
-d Deletes password for name and unlocks the
account. The login name is not prompted for pass-
word. It is only applicable to the files and ldap
repositories.
If the login(1) option PASSREQ=YES is configured,
the account is not able to login. PASSREQ=YES is
the delivered default.
> could you please help me, how can i crack my login.
>
> i dont have a bootable dvd, just have one live CD.
Boot from the LiveCD, and open a shell. "mkdir /tmp/tmproot". Then you
should be able to do a "zpool import -R /tmp/tmproot rpool" to
temporarily mount the root pool on /a. (You might have to prefix it
with "pfexec".
Then edit /tmp/tmproot/etc/default/login and change PASSREQ to "NO".
Reboot and you should be okay.
I haven't had to do this procedure in quite a while, so you might need
to tweak some settings.
Also, I certainly hope you don't connect this machine to the network.
_______________________________________________
opensolaris-discuss mailing list
[email protected]