For the Unix or similar operating systems login is the command that “login“ command starts with a brand new login session for the system.
This page provides what is the Linux Version of login..
Login program: The Login program can be used to start an entirely new session on the system. It’s typically activated automatically, by responding with”login:” prompt on the terminal “login:” prompt on the user’s terminal. login could be a special case for this shell and therefore cannot be used as sub-process. If it is invoked from an executable shell the login must be run using the exec login, which results in the user exiting within the currently running shell (and consequently prevents the newly registered user from returning to the shell of the user calling). If you attempt to execute login in any other shell but the login shell results in the error.
The user is then asked to input an password and, if necessary. The echoing is turned off to avoid disclosure of the password. A small percentage of password errors are allowed before the login is completed and the communication link is cut off.
If the option of aging your password is activated on your login, you might be asked for the creation of a new password prior to moving forward. It will ask you to enter your previous password as well as the new one prior to proceeding; refer to our password aging page for further details.
Your group ID and user identity will set based on their entries in the password file. The values for $HOME the $SHELL, $PATH,”$LOGNAME” and “$MAIL” are set in accordance with the relevant fields of your password entries. Ulimit, umask and nice values could be set in accordance with entry into the GECOS field.
In certain installations on some installations, in some instances, environment variable $TERM is set to the type of terminal on your line, namely the tty line. This is indicated in the file /etc/ttytype..
A script for initialization can also be executed. Check the documentation for the program interpreter for more information about initialization scripts.
A subsystem login is identified by the appearance of the letter ” *” as the first character of the login shell. The specified the home directory is used as the root for the brand new computer system that users are currently in.