LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-04-2006, 04:55 AM   #1
khattaking
Member
 
Registered: Oct 2005
Location: AUH
Distribution: Solaris, Red Hat, Fedora and Ubuntu
Posts: 49

Rep: Reputation: 15
Forgot my Password


Hello all. Can you please help me, i am stuck with a problem and the problem is that i reinstalled solaris 10... i gave the root password as usual but after installation... when i tried to log in again... my brain memory flushed and i could not remember the password...
Is there anyway to change my password... like using the single user mode in the Fedora Linux,,, I am in urgent need of that...
Plz help...
Thnkx in advance
 
Old 07-04-2006, 05:10 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Can you boot from cd under root, mount partition, chroot to it, and say passwd root??
 
Old 07-20-2006, 12:33 PM   #3
mdhmi
Member
 
Registered: Dec 2005
Location: Detroit, Michigan
Distribution: Ubuntu
Posts: 86

Rep: Reputation: 15
Quote:
Originally Posted by raskin
Can you boot from cd under root, mount partition, chroot to it, and say passwd root??
Yes. That's pretty much exactly what you do.

1) Boot an install CD into maintenance mode (boot cdrom -s)
2) mount slash (/) of the primary disk (example: mount /dev/dsk/c0t0d0s0 /mnt)
3) Edit /mnt/etc/shadow and remove the password field for root user.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
forgot my password navaladi Linux - Newbie 2 12-22-2004 08:47 AM
forgot password =( ?!?! j_miguel_y Linux - General 1 08-31-2004 11:58 AM
what to do when forgot your password? isamitch Linux - General 11 07-23-2004 01:57 PM
forgot my password ? i can change the password JrLz Linux - Security 9 04-06-2004 07:36 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration