commands.sh

sulogin

linux

Log in as root during single-user mode.

More info →

Options (3)

-t, --timeoutboolean

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

Example: sudo sulogin {{[-t|--timeout]}} {{timeout}}
-p, --login-shellboolean

Start root's shell as a login shell

Example: sudo sulogin {{[-p|--login-shell]}}
-e, --forceboolean

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

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

Examples (5)

Start `sulogin` on the default console

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]
made by @shridhargupta | data from tldr-pages