Files
cheatsheet-tldr/tldr/linux/sulogin
2025-10-20 00:21:08 +00:00

30 lines
696 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# sulogin
> Log in as root during single-user mode.
> More information: <https://manned.org/man/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]}}`