Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Single-user mode

From Wikipedia, the free encyclopedia
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Single-user mode" – news ·newspapers ·books ·scholar ·JSTOR
(November 2010) (Learn how and when to remove this message)

Single-user mode is a mode in which amultiuser computeroperating systemboots into a singlesuperuser. It is mainly used for maintenance of multi-user environments such as network servers. Some tasks may require exclusive access to shared resources, for example runningfsck on anetwork share. This mode can also be used for security purposes – network services are not run, eliminating the possibility of outside interference. On some systems a lostsuperuser password can be changed by switching to single-user mode, but not asking for the password in such circumstances is viewed as a security vulnerability.

Unix family

[edit]

Unix-like operating systems provide single-user mode functionality either through the System V-stylerunlevels, BSD-style boot-loader options, or other boot-time options.

The run-level is usually changed using theinit command, runlevel 1 or S will boot into single-user mode.

Boot-loader options can be changed during startup before the execution of the kernel.InFreeBSD andDragonFly BSD it can be changed before rebooting the system with the commandnextboot -o "-s" -k kernel, and its bootloader offers the option on bootup to start in single-user mode. InSolaris the commandreboot -- -s will cause a reboot into single-user mode.

macOS users can accomplish this by holding down⌘ S after powering the system. The user may be required to enter a password set in thefirmware. InOS X El Capitan and later releases of macOS, the mode can be reversed to single-user mode with the commandsudo launchctl reboot userspace -s in Terminal, and the system can be fully rebooted in single-user mode with the commandsudo launchctl reboot system -s. Single-user mode is different from asafe mode boot 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 runfsck or othercommand line utilities as needed (or installed).

Microsoft Windows

[edit]

Microsoft Windows providesRecovery Console, Last Known Good Configuration,Safe Mode and recentlyWindows Recovery Environment as standard recovery means. Also, bootableBartPE-based third-party recovery discs are available.

Recovery Console and recovery discs are different from single-user modes in other operating systems because they are independent of the maintained operating system. This works more likechrooting into other environment with other kernel in Linux.

References

[edit]


Stub icon

Thiscomputer science article is astub. You can help Wikipedia byexpanding it.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Single-user_mode&oldid=1145709331"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp