HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

login — Initiates a session for a user. More information: <https://manned.org/login>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandloginclimoreinitiatesusersessionfor
linux

Problem

How to use the login command: Initiates a session for a user. More information: <https://manned.org/login>.

Solution

login — Initiates a session for a user. More information: <https://manned.org/login>.

Log in as a user:
login {{user}}


Log in as user without authentication if user is preauthenticated:
login -f {{user}}


Log in as user and preserve environment:
login -p {{user}}


Log in as a user on a remote host:
login -h {{host}} {{user}}

Code Snippets

Log in as a user

login {{user}}

Log in as user without authentication if user is preauthenticated

login -f {{user}}

Log in as user and preserve environment

login -p {{user}}

Log in as a user on a remote host

login -h {{host}} {{user}}

Context

tldr-pages: linux/login

Revisions (0)

No revisions yet.