|
In the OpenSolarisTM release, the root user is set up as follows:
- Login as the root user is not enabled either on the Live CD or on the installed system. You must log in as the user that you created during the installation. After you log in, you can then become superuser to configure the system. Because root is a role, open a terminal window and use the su command to assume the role, or use the pfexec sh command to run commands in a privileged shell.
Note - If you try to log in to the installed system as root, an error message displays. Click OK and log in as the local user that you created during the installation.
- Normally, root is configured as a role per Role-Based Access Control (RBAC) specifications. However, if you do not create a user account during the installation, root is set up as a normal account on the installed system, instead of as a role. This is the only situation where you can log in to the installed system as root without manually changing the role assignment for root.
- After you install the OpenSolaris release, if you wish to manually change the installed system to permit root logins, remove root as an assigned role for users. Then, type the following at the command line:
# rolemod -K type=normal root
- The root user's default shell is /usr/bin/bash. You can change the default shell by specifying any valid shell in the entry for root in the /etc/passwd file, using the rolemod command.
- You cannot use ssh to log in to a system as root. You can enable ssh access for root by appending the allow_remote text to this line in the /etc/pam.conf file.
other account requisite pam_roles.so.1 allow_remote
|