Thanks Darren,
The problem is, 
I had just created one user and I gave passwd -d for that user only.
Now I don't have any user in my system, using which I can login and do these 
changes.

(In RedHat, I can boot using my CD and go to the rescue mode to do any changes 
to the system files. However, this is not the case in openSolaris)

Can I do something using my Live CD?

-----Original Message-----
From: Darren.Moffat at Sun.COM [mailto:darren.mof...@sun.com] On Behalf Of 
Darren J Moffat
Sent: Wednesday, October 21, 2009 5:39 PM
To: Abid R S
Cc: security-discuss at opensolaris.org
Subject: Re: password -d, but still asking for passwd

Abid R S wrote:
> Hi Team
> I m new to openSolaris and installed it using a live CD 2008.05.
> i found it to be quite similar to RedHat Linux but still many things are 
> different. 
> though i m loving it.
> 
> 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.

If you created a user during the initial install of OpenSolaris via the 
GUI installer then the root account is setup as a role.  That means it 
can not be logged into directly.  It doesn't matter if it has a password 
or not.

If you want to login directly as root then you need to convert the root 
account from not being a role to being a "normal" account.   To do that 
login as the non root user that was created during install, then su to 
root and run:
        # usermod -K type=normal root

-- 
Darren J Moffat


-----Message Disclaimer-----

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to Connect at principal.com and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("E-Sign")
unless a specific statement to the contrary is included in this message.

While this communication may be used to promote or market a transaction
or an idea that is discussed in the publication, it is intended to provide
general information about the subject matter covered and is provided with
the understanding that The Principal is not rendering legal, accounting,
or tax advice. It is not a marketed opinion and may not be used to avoid
penalties under the Internal Revenue Code. You should consult with
appropriate counsel or other advisors on all matters pertaining to legal,
tax, or accounting obligations and requirements.

Reply via email to