Operations 2 min read

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.

Open Source Linux
Open Source Linux
Open Source Linux
Master Single-User Login with sulogin: Syntax, Options, and Example

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 password
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

LinuxSystem Administrationsingle-user loginsulogin
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.