In Solaris 11, a secondary user is created as part of the installation process, the text installation allows you to bypass this, but even if you do you will be unable to login as root to perform any configurations, even though you set the password as part of the setup. Now if you went through this in the installation, you can salvage your installation by booting into single user mode. But for those of us who just want to manage this box differently the steps are the same (minus the single user mode).
Configure SSH to Permit Root Logins
# vi /etc/ssh/sshd_config
Here we want to find “PermitRootLogin” and flip it to yes.
# svcadm restart ssh
Then restart SSH. SSH will now accept root as a login account, however root is still set as a role.
# vi /etc/user_attr
Here we want to find the line which is for the user root, and remove the last portion of the line which says “type=role”.
That is it. You can now login directly on the console or via SSH using the root account and password you set during installation. Of course you can reset the password using passwd as well if need be.