version 1.13, 2000/03/24 21:41:08 |
version 1.14, 2000/11/29 23:15:09 |
|
|
.Nm login |
.Nm login |
.Op Fl fp |
.Op Fl fp |
.Op Fl h Ar hostname |
.Op Fl h Ar hostname |
|
.Op Fl u Ar username |
.Op Ar user |
.Op Ar user |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
The |
The |
|
|
This option may only be used by the superuser or when an already |
This option may only be used by the superuser or when an already |
logged in user is logging in as themselves. |
logged in user is logging in as themselves. |
.It Fl h Ar hostname |
.It Fl h Ar hostname |
The |
Specifies the host from which the connection was received. |
.Fl h |
|
option specifies the host from which the connection was received. |
|
It is used by various daemons such as |
It is used by various daemons such as |
.Xr telnetd 8 . |
.Xr telnetd 8 . |
This option may only be used by the superuser. |
This option may only be used by the superuser. |
|
.It Fl u Ar username |
|
Specifies the remote user that initiated the connection. |
|
It is used by various daemons such as |
|
.Xr telnetd 8 . |
|
This option may only be used by the superuser. |
.It Fl p |
.It Fl p |
By default, |
By default, |
.Nm |
.Nm |
|
|
do not fork before executing the |
do not fork before executing the |
.Nm |
.Nm |
utility. |
utility. |
|
.Sh ENVIRONMENT |
|
.Nm |
|
sets the following environment variables: |
|
.Bl -tag -width REMOTEHOST |
|
.It Ev HOME |
|
The user's home directory, as specified by the password database. |
|
.It Ev SHELL |
|
The user's shell, as specified by the password database. |
|
.It Ev TERM |
|
The user's terminal type, if it can be determined. |
|
.It Ev LOGNAME |
|
The user's login name. |
|
.It Ev USER |
|
Same as |
|
.Ev LOGNAME . |
|
.It Ev REMOTEHOST |
|
The name of the host from which the user logged in, if the |
|
.Fl h |
|
flag was specified. |
|
.It Ev REMOTEUSER |
|
The name of the remote user who initiated the connection, if the |
|
.Fl u |
|
flag was specified. |
|
.El |
.Sh FILES |
.Sh FILES |
.Bl -tag -width /var/log/failedlogin -compact |
.Bl -tag -width /var/log/failedlogin -compact |
.It Pa /etc/fbtab |
.It Pa /etc/fbtab |