tldr/pages/linux/login.md

21 lines
354 B
Markdown
Raw Permalink Normal View History

2020-10-06 12:52:50 +01:00
# login
> Initiates a session for a user.
> More information: <https://manned.org/login>.
2020-10-06 12:52:50 +01:00
- Log in as a user:
2020-10-06 12:52:50 +01:00
`login {{user}}`
- Log in as user without authentication if user is preauthenticated:
2020-10-06 12:52:50 +01:00
`login -f {{user}}`
- Log in as user and preserve environment:
2020-10-06 12:52:50 +01:00
`login -p {{user}}`
- Log in as a user on a remote host:
2020-10-06 12:52:50 +01:00
`login -h {{host}} {{user}}`