How to allow root login on Solaris 11

By default, after your installation of Solaris 11 has completed, you will not be able to login directly to the console as the user "root". This is due to the fact the the super-user account is assigned as a role and not a normal user.

Here are the steps needed to enable root login as a normal user:

  1. Edit /etc/ssh/sshd_config and change the PermitRootLogin to yes
    PermitRootLogin yes
  2. Edit /etc/default/login and comment out the CONSOLE entry, as follows:
    #CONSOLE=/dev/console
  3. Remove ;type=role from the root entry in /etc/user_attr, or run:
    # rolemod -K type=normal root
  4. Restart SSH service
    # svcadm restart svc:/network/ssh:default