|Skip Navigation Links|
|Exit Print View|
|System Administration Guide: Oracle Solaris Zones, Oracle Solaris 10 Containers, and Resource Management Oracle Solaris 11 Express 11/10|
This section describes the methods you can use to log in to a zone.
Each zone maintains a virtual console, /dev/console. Performing actions on the console is referred to as console mode. Console login to a zone is available when the zone is in the installed state. The zone console is closely analogous to a serial console on a system. Connections to the console persist across zone reboots. To understand how console mode differs from a login session such as telnet, see Remote Login.
The zone console is accessed by using the zlogin command with the -C option and the zonename. The zone does not have to be in the running state.
Processes inside the zone can open and write messages to the console. If the zlogin -C process exits, another process can then access the console.
If role-based access control (RBAC) is in use, access to the zone console requires the authorization solaris.zone.manage/zonename. A specific zonename suffix, preceded by the slash character (/), is optional. When omitted, the authorization matches any zone.
To log in to the zone with a user name, use the zlogin command with the -l option, the user name, and the zonename. For example, the administrator of the global zone can log in as a normal user in the non-global zone by specifying the -l option to zlogin:
global# zlogin -l user zonename
To log in as user root, use the zlogin command without options.