Index of Section 1 Manual Pages
| Interix / SUA | login.1 | Interix / SUA |
LOGIN(1) System General Commands Manual LOGIN(1)
NAME
login - log into the computer
SYNOPSIS
login [-fIpPq] [-d domain] [-h hostname] [user]
DESCRIPTION
The login utility logs users (and pseudo-users) into the computer system.
If no user is specified, or if a user is specified and authentication of
the user fails, login prompts for a user name. Authentication of users
is done via passwords. Alternately, the user can enter the password
"s/key", in which case S/Key authentication of users is performed, as
descibed in skey(1). S/Key is a Trademark of Bellcore.
The default domain that a user will be logged into if a filly qualified
username (FQUN) is not given is presented in brackets before the username
prompt. The default domain will be pre-pended to a username if the user-
name is not a FQUN. The default domain is tken from registry entry
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Services For Unix/PrincipalDomain
with Interix 3.5 and from the registry entry
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/SUA/PrincipalDomain for all ver-
sions thereafter. If the registry entry is not set then the result from
the getpdomain(3) call is used.
The options are as follows:
-d domain
Use this domain as the default domain for fully qualified user-
names (FQUN).
-f The -f option is used when a user name is specified to indicate
that proper authentication has already been done and that no
password need be requested. This option may only be used by the
super-user or when an already logged in user is logging in as
themselves.
-h hostname
The -h option specifies the host from which the connection was
received. It is used by various daemons such as telnetd(8).
This option may only be used by the super-user.
-I Prior to the initial prompt for a username display information
about fully qualified usernames (FQUN, DOMAIN+username).
-p By default, login discards any previous environment. The -p
option disables this behavior.
-q Works as though the file .huslogin has been found in the user's
home directory.
If the file /etc/nologin exists, login displays its contents to the user
and exits. This is used by shutdown(8) to prevent users from logging in
when the system is about to go down.
If the file /var/log/adm/failedlogin exists, login will record failed
login attempts in this file.
Immediately after logging a user in, login displays the system copyright
notice, the date and time the user last logged in, the date and time of
the last unsuccessful login (if the file /var/log/adm/failedlogin
exists), the message of the day as well as other information. If the
file ``.hushlogin'' exists in the user's home directory, all of these
messages are suppressed. This is to simplify logins for non-human users,
such as uucp(1). login success then indirectly causes the subsystem to
record an entry in the wtmpx(5) and utmpx(5) files and executes the
user's command interpreter.
login enters information into the environment (see environ(7)) specifying
the user's home directory (HOME), command interpreter (SHELL), search
path (PATH), terminal type (TERM), and user name (both LOGNAME and USER).
The standard shells, csh(1) and sh(1), do not fork before executing the
login utility.
This version of login has been enhanced to work with s/key. Assuming you
have properly initialized s/key you will enter "s/key" when asked the
password. This will activate the s/key response. If you enter the correct
one time response then you will be allowed to login provided that you
have registered your password previously with the regpwd utility. Please
note that the most common mistake is not providing the one time response
that matches the sequence number in the prompt.
FILES
/etc/motd message-of-the-day
/etc/nologin disallows logins
/var/adm/log/lastlog last login account records
/var/adm/wtmpx login account records
/var/log/adm/failedlogin
failed login account records (needs to be created
by the administrator)
/var/mail/user system mailboxes
.hushlogin makes login quieter
SEE ALSO
chpass(2), getdomain(2), getpass(3), passwd(1), regpwd(1), rlogin(1),
skey(1), skeyinit(1), ssh(1), utmpx(5),
HISTORY
A login utility appeared in Version 6 AT&T UNIX.
Interix June 28, 2008 Interix