OS Manuals

/usr/bin/login

Login utils from util-linux package newgrp last lastb login lslogins nologin sulogin

From util-linux-login 2.42.4-r2 (os), captured 2026-11-05 by running login --help (exit 0). permalink

Usage:
 login [-p] [-s <shell>] [-h <host>] [-H] [[-f] <username|UID>]

Begin a session on the system.

Options:
 -p                  do not destroy the environment
 -f                  skip a login authentication
 -h <host>           hostname to be used for utmp logging
 -H                  suppress hostname in the login prompt
 -s, --shell <path>  define the shell to log in to
     --help          display this help
 -V, --version       display version

For more details see login(1).
Options (7)
OptionDescriptionSource
-pUsed by getty(8) to tell login to preserve the environment.help + man
-fUsed to skip a login authentication.help + man
-h hostUsed by other servers (such as telnetd(8) to pass the name of the remote host to login so that it can be placed in utmp and wtmp.help + man
-HUsed by other servers (for example, telnetd(8)) to tell login that printing the hostname should be suppressed in the login: prompt.help + man
-s, --shell pathSpecify a shell, other than the one defined in /etc/passwd, to log in to.help + man
--helpdisplay this helphelp
-V, --versionDisplay version and exit.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.