HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

sulogin — Log in as root during single-user mode. More information: <https://manned.org/sulogin>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandduringsulogincliloguserrootsingle
linux

Problem

How to use the sulogin command: Log in as root during single-user mode. More information: <https://manned.org/sulogin>.

Solution

sulogin — Log in as root during single-user mode. More information: <https://manned.org/sulogin>.

Start sulogin on the default console:
sudo sulogin


Start sulogin on a specific TTY device:
sudo sulogin {{/dev/ttyX}}


Set a maximum timeout(in seconds) for entering the root password before continuing normal boot:
sudo sulogin {{[-t|--timeout]}} {{timeout}}


Start root's shell as a login shell:
sudo sulogin {{[-p|--login-shell]}}


Force a root shell without asking for a password when default methods of obtaining the password fail:
sudo sulogin {{[-e|--force]}}

Code Snippets

Start `sulogin` on the default console

sudo sulogin

Start `sulogin` on a specific TTY device

sudo sulogin {{/dev/ttyX}}

Set a maximum timeout(in seconds) for entering the root password before continuing normal boot

sudo sulogin {{[-t|--timeout]}} {{timeout}}

Start root's shell as a login shell

sudo sulogin {{[-p|--login-shell]}}

Force a root shell without asking for a password when default methods of obtaining the password fail

sudo sulogin {{[-e|--force]}}

Context

tldr-pages: linux/sulogin

Revisions (0)

No revisions yet.