Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Maintenance mode

Solaris


Reply    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 4 Weeks Ago   -   Original Discussion by goya
hicksd8's Unix or Linux Image
hicksd8 hicksd8 is offline Forum Staff  
Moderator
 
Join Date: Feb 2012
Last Activity: 16 December 2017, 4:55 PM EST
Location: Devon, UK
Posts: 1,664
Thanks: 241
Thanked 408 Times in 346 Posts
From your last post guess this is Solaris 11 in which 'root' is a role by default for improved security.

If you are used to Solaris 10 and prefer to work that way then you can convert the root role into a normal account using (you must be superuser first):


Code:
# rolemod -K type=normal root

then set the root passwd:


Code:
# passwd root

You can then login as root just like Solaris 10 and you will know the root password for single user startup.

When done you can revert root to a role using 'usermod' command.
The Following User Says Thank You to hicksd8 For This Useful Post:
rbatte1 (3 Weeks Ago)
Sponsored Links
    #9  
Old Unix and Linux 3 Weeks Ago   -   Original Discussion by goya
goya's Unix or Linux Image
goya goya is offline
Registered User
 
Join Date: May 2015
Last Activity: 30 November 2017, 9:19 AM EST
Posts: 11
Thanks: 6
Thanked 0 Times in 0 Posts
thanks, i will give that a try, but my issue is on Solaris 10. we most likely will not go to 11 now since, development has ended. Will prob move to Linux.
Sponsored Links
    #10  
Old Unix and Linux 3 Weeks Ago   -   Original Discussion by goya
MadeInGermany's Unix or Linux Image
MadeInGermany MadeInGermany is offline Forum Staff  
Moderator
 
Join Date: May 2012
Last Activity: 17 December 2017, 5:45 AM EST
Location: Simplicity
Posts: 3,871
Thanks: 322
Thanked 1,291 Times in 1,168 Posts
I would be careful with rolemod. Not that at the end root lost its superuser role and cannot gain it back...
You see, I have never used rolemod.
I would rather save /etc/shadow (with cp to a new file) or save root's password hash.
Then set a new root password. Then reboot to single-user, now typing the root password, patching the OS, and reboot.
When everything is nice and shiny again, you can restore the shadow file (with cp) or root's password hash, so the old unknown password is back.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to put VIOS in Maintenance mode? Adnans2k AIX 0 11-25-2015 10:53 AM
DNS service is in maintenance mode. How to bring it back to online mode? vamshigvk475 Solaris 2 10-23-2012 01:19 AM
Samba service in maintenance mode ??? KenLynch Solaris 2 04-02-2010 05:55 AM
Process in maintenance mode, why? JVerstry Solaris 4 08-25-2009 02:03 PM
FTP is in maintenance mode always bullz26 Solaris 5 07-30-2009 07:00 AM



All times are GMT -4. The time now is 07:45 AM.