2022-04-23 13:26:53 +01:00
|
|
|
---
|
2022-08-20 12:30:04 +01:00
|
|
|
categories:
|
2023-02-10 18:22:04 +00:00
|
|
|
- Linux
|
|
|
|
tags: []
|
2022-04-23 13:26:53 +01:00
|
|
|
---
|
2023-02-10 18:22:04 +00:00
|
|
|
|
2022-05-23 17:42:11 +01:00
|
|
|
# User management
|
|
|
|
|
2022-04-23 13:26:53 +01:00
|
|
|
## Switch user
|
|
|
|
|
2024-02-02 15:58:13 +00:00
|
|
|
If already logged in as a user you can switch users with the command
|
|
|
|
`su - [username]`.
|
2022-04-23 13:26:53 +01:00
|
|
|
|
|
|
|
## Login as root
|
|
|
|
|
2024-02-02 15:58:13 +00:00
|
|
|
If you are logged in as a standard user, if you use `su -` without specifying a
|
|
|
|
username, then it will assume you wish to log in as root.
|
2022-04-23 13:26:53 +01:00
|
|
|
|
2024-02-02 15:58:13 +00:00
|
|
|
If you wish to login as root in the tty at startup, then use `root` as the
|
|
|
|
username.
|