ArticleslgStudy

computer science

Single-user mode

Single-user mode is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Single-user mode rather than just read about it. In short: Single-user mode is a mode in which a multiuser computer operating system boots into a single administrator user, instead of the normal system. It is mainly used for maintenance of multi-user environments, including network servers, where operating on the normal system would be difficult or impossible – for example, some tasks may require exclusive access to resources that are shared, like repairing a broken filesys…

Key takeaways

  • Single-user mode belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Single-user mode to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Single-user mode from memory before moving on to harder problems.

Reference excerpt

Single-user mode is a mode in which a multiuser computer operating system boots into a single administrator user, instead of the normal system. It is mainly used for maintenance of multi-user environments, including network servers, where operating on the normal system would be difficult or impossible – for example, some tasks may require exclusive access to resources that are shared, like repairing a broken filesystem used for a network share. This mode can also be used for security purposes, as network services are not run, eliminating the possibility of outside interference. On some systems, a forgotten superuser password can be changed in single-user mode, although not asking for the password in this case is viewed as a security vulnerability.

Unix family Unix-like operating systems provide single-user mode functionality either through the System V-style runlevels, BSD-style boot-loader options, or other boot-time options. Boot-loader options can be changed during startup before the execution of the kernel. GNU GRUB by default generates an additional recovery boot entry for this purpose to perform this function; manual editing of the kernel command-line is also available in the bootloader. The FreeBSD and DragonFly BSD bootloader offers the option on boot to start in single-user mode. In systems using System V-style runlevels, the runlevel is usually changed using the init command. Selecting a runlevel of 1 (also s or S in some Unixes), will boot into single-user mode. The systemd equivalent is sudo systemctl isolate rescue.target. Boot-loader options can also be changed at runtime, before rebooting the system.

In FreeBSD and DragonFly BSD, it can be changed with the command nextboot -o "-s" -k kernel. In Solaris, the command reboot -- -s will cause a reboot into single-user mode.

masOS In OS X El Capitan and later releases of macOS, a userspace reboot to single-user mode can be performed with the command sudo launchctl reboot userspace -s in Terminal, and the system can be fully rebooted in single-user mode with the command sudo launchctl reboot system -s. On macOS High Sierra and earlier versions, a user can also enter single user mode by holding down ⌘ S at startup, which may require entering a password set in the firmware. Single-user mode is different from safe mode in that the system goes directly to the console instead of starting up the core elements of macOS (items in /System/Library/, ignoring /Library/, ~/Library/, et al.). From there users are encouraged by a prompt to run fsck or other command line utilities as needed (or installed).

Microsoft Windows Microsoft Windows provides Recovery Console, Last Known Good Configuration, Safe Mode and recently the Windows Recovery Environment as standard recovery means. Bootable BartPE-based third-party recovery discs are available. The Recovery Console and recovery discs are different from single-user modes in other operating systems because they are independent of the main operating system, whereas single-user mode is the same system operating in a different mode.

References

"What is a runlevel?". Retrieved November 17, 2010. UNIX Research System Programmer's Manual

Worked examples

Example 1 — a first encounter with Single-user mode

Start with the simplest possible case. Write down what Single-user mode claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Single-user mode before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Single-user mode ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Single-user mode

In research
Single-user mode appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Single-user mode in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Single-user mode is common in secondary-school and first-year university syllabi. It links to neighbouring topics Booting, Computer science stubs, Operating system technology, so understanding it makes those chapters shorter.
In everyday life
Look for Single-user mode outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Single-user mode” →

How to study Single-user mode in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Single-user mode means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Single-user mode out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Single-user mode in simple terms?

Single-user mode is a mode in which a multiuser computer operating system boots into a single administrator user, instead of the normal system. It is mainly used for maintenance of multi-user environments, including network servers, where operating on the normal system would be difficult or impossi…

Why does Single-user mode matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Single-user mode?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Single-user mode.

Tags

  • Booting
  • Computer science stubs
  • Operating system technology

Keep exploring