Master Single-User Login with sulogin: Syntax, Options, and Example
This guide explains how to use the sulogin command for single‑user login, detailing its syntax, available options such as -p and -t, and provides a practical example illustrating the login process without loading profile files.
sulogin: Single-User Login
Function Description:
Using the sulogin command allows a single-user login; the shell will not read /etc/profile or $HOME/.profile during startup.
Syntax:
sulogin [options] [ TTY ]Option Meanings:
The options are defined as follows:
-p : The single-user shell invokes a dash as the first character of the argument.
-t : The program will wait for user input for the specified number of seconds.
Example:
Perform a Single-User Login
[root@host131 ~]# sulogin
Give root password for maintenance
(or press Control-D to continue): // input user passwordSigned-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Linux
Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
