tldr/pages/linux/login.md

20 lines
306 B
Markdown
Raw Normal View History

2020-10-06 12:52:50 +01:00
# login
> Initiates a session for a user.
- 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}}`