Oracle SolarisSolaris 11Solaris 11.3Solaris 11.4

Oracle Solaris Run Levels Explained

In this tutorial, we will learn about Run Levels in Oracle Solaris operating system which are being used by System Administrators and defines what services and resources are available to users.

What are Run Levels

A system’s run level (also known as an init state) defines what services and resources are available to users. A system can be in only one run level at a time. A run level is a state of init and the whole system that defines what system services are operating. Run levels are identified by numbers.

Oracle Solaris has eight run levels, 0 to 6 and s (or S). The default run level is specified in the /etc/inittab file as run level 3. Users can modify the preset runlevels or even create new ones if needed. Runlevel 4 is typically for user-defined runlevels.

Oracle Solaris Run Levels

Run LevelInit StateTypePurpose
0Power-down statePower-downTo shut down the operating system so that it is safe to turn off power to the system.
s or SSingle-user stateSingle-userTo run as a single user with some file systems mounted and accessible.
1Administrative stateSingle-userTo access all available file systems. User logins are disabled.
2Multiuser stateMultiuserFor normal operations. Multiple users can access the system and all file systems. All daemons are running except for the NFS server daemons.
3Multiuser level with NFS resources sharedMultiuserFor normal operations with NFS resources shared. This is the default run level.
4Alternative multiuser stateMultiuserNot configured by default, but available for customer use.
5Power-down statePower-downTo shut down the operating system so that it is safe to turn off power to the system. If possible, automatically turns off power on systems that support this feature.
6Reboot stateRebootTo stop the operating system and reboot to the state that is defined by the initdefault entry in the /etc/inittab file.

When to Use Run Levels

Booting a system into different run levels solves certain problems. For example, if a system fails to boot due to a damaged configuration file, refuses to allow the user to log in due to a corrupted /etc/passwd file or if you forget your password, you can solve these problems by booting into single-user mode.

If you want to reset the root user password in Solaris OS, You may check out our post “How to reset root password in Solaris 11.

Determining a System’s Current Run Level

To determine a system’s current run level, use the who -r command.

For example

$ who -r
runlevel -
Run Level
Output of who â€“r commandDescription
run-level 3Identifies the current run level
Mar 18 19:45Identifies the date of last run level change
3Also identifies the current run level
0Identifies the number of times the system has been at this run level since the last reboot
SIdentifies the previous run level

Reference Links:-

0 0 votes
Article Rating

Prashanth Nimesh

I'm Prashanth Nimesh, a System Administrator with over 5 years of experience in the IT field and a B.Tech in Computer Science. My passion for technology and problem-solving led me to create The Geeks Hub, where I share my expertise in Linux, Solaris, and server management. As the main contributor, I aim to simplify complex tech topics and provide practical guides to help IT professionals and enthusiasts navigate the digital landscape with confidence.

Related Articles

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
trackback

[…] Learn more about Solaris Run Levels here. […]

Check Also
Close
Back to top button