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:
- Edit
/etc/ssh/sshd_config
and change thePermitRootLogin
to yesPermitRootLogin yes
- Edit
/etc/default/login
and comment out theCONSOLE
entry, as follows:#CONSOLE=/dev/console
- Remove
;type=role
from the root entry in/etc/user_attr
, or run:# rolemod -K type=normal root
- Restart SSH service
# svcadm restart svc:/network/ssh:default