LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 01-08-2011, 12:32 PM   #1
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Rep: Reputation: 15
Changing Root Password in Solaris 10


How do i change Root Password in Solaris 10 server containing two zones.One full root and the other is sparse zone.
One more thing,This is Sparc machine.

Thanks,

Bavon
 
Old 01-08-2011, 01:22 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
Run "passwd" as root in all zones.
 
Old 01-08-2011, 01:23 PM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,042

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
The password is stored in only one place, /etc/shadow, for every user account (look at /etc/passwd and /etc/shardow with an editor such as vi -- but don't mess with 'em).

So, log in as root and execute passwd; you'll be prompted for the new password and all is well that ends. If for some reason you have two accounts named "root" and "root-something-or-other" (for the zone), change 'em both using the passwe utility. It is highly unlikely that you actually will have a separate password for the zone but... who knows what evil lurks in the dark of night, eh.

Hope this helps some.
 
Old 01-08-2011, 01:24 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
@tronayne zones are like mini-VMs and have their own password files
 
Old 01-08-2011, 02:04 PM   #5
bavondrake
Member
 
Registered: Aug 2007
Posts: 40

Original Poster
Rep: Reputation: 15
@tronayne,
Do i need to be in single user mode when changing the root password in the zones?,Also does this require rebooting them..?
 
Old 01-08-2011, 02:09 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
No and no.
 
Old 01-08-2011, 02:13 PM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,042

Rep: Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761Reputation: 761
Quote:
Originally Posted by AlucardZero View Post
@tronayne zones are like mini-VMs and have their own password files
Arrgghh! Forgot about that. Thanks for the reminder.
 
  


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
forgot root password for solaris 9 m3kgt Solaris / OpenSolaris 11 08-26-2008 04:53 PM
solaris root password problem soumalya Solaris / OpenSolaris 5 08-02-2008 05:53 AM
changing root password Bombo Linux - Newbie 2 04-10-2005 10:42 PM
Changing root password Gibby Mandriva 1 10-02-2003 10:38 PM
changing root password jamaso Linux - Newbie 1 12-25-2001 10:38 PM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration