NAME
login — authenticate users and run personal sessionSYNOPSIS
login |
DESCRIPTION
login interactively authenticates users by asking them to enter their username and password. The passwords are checked against the password hashes in /etc/passwd as described in passwd(5). login creates a session as the requested user upon successful authentication.- exit
- alias for poweroff
- poweroff
- exit asking for powering off the computer
- reboot
- exit asking for rebooting the computer
SECURITY
There is currently no method to confirm the login screen is in fact real other than witnessing a pristine boot. Local users can log in and show a counterfeit login screen that look and behave like the real login program and trick the next user into revealing their password.ENVIRONMENT
login sets the following environment variables to match the authenticated user:- HOME
- home directory
- LOGNAME
- username
- SHELL
- shell
- USER
- username
FILES
- /etc/passwd
- user database (see passwd(5))
- /etc/login.conf.textual
- textual interface is forced if this file exists