2020-10-06 12:52:50 +01:00
|
|
|
# login
|
|
|
|
|
|
|
|
> Initiates a session for a user.
|
|
|
|
|
2021-05-14 01:42:15 +01:00
|
|
|
- Log in as a user:
|
2020-10-06 12:52:50 +01:00
|
|
|
|
|
|
|
`login {{user}}`
|
|
|
|
|
2021-05-14 01:42:15 +01:00
|
|
|
- Log in as user without authentication if user is preauthenticated:
|
2020-10-06 12:52:50 +01:00
|
|
|
|
|
|
|
`login -f {{user}}`
|
|
|
|
|
2021-05-14 01:42:15 +01:00
|
|
|
- Log in as user and preserve environment:
|
2020-10-06 12:52:50 +01:00
|
|
|
|
|
|
|
`login -p {{user}}`
|
|
|
|
|
2021-05-14 01:42:15 +01:00
|
|
|
- Log in as a user on a remote host:
|
2020-10-06 12:52:50 +01:00
|
|
|
|
|
|
|
`login -h {{host}} {{user}}`
|