Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
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
- halt
- exit asking for halting the computer
- reinit
- exit asking for reinitializing the system
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
- ~/.session
- user session script run upon login (see session(5))
- /etc/login.conf.textual
- textual interface is forced if this file exists
- /etc/passwd
- user database (see passwd(5))
- /etc/session
- fallback session script run upon login (see session(5))
- /var/run/nologin
- Further non-privileged logins are prohibited if this file exists and users attempting to log in are shown the contents of this file (see shutdown(8))