version 1.14, 2000/11/29 23:15:09 |
version 1.15, 2001/05/29 21:39:26 |
|
|
.\" $OpenBSD$ |
.\" $OpenBSD$ |
.\" $NetBSD: login.1,v 1.7 1995/08/31 22:52:33 jtc Exp $ |
|
.\" |
.\" |
.\" Copyright (c) 1980, 1990, 1993 |
.\" Copyright (c) 1980, 1990, 1993 |
.\" The Regents of the University of California. All rights reserved. |
.\" The Regents of the University of California. All rights reserved. |
|
|
.Nm login |
.Nm login |
.Op Fl fp |
.Op Fl fp |
.Op Fl h Ar hostname |
.Op Fl h Ar hostname |
|
.Op Fl L Ar local-ip-address |
|
.Op Fl R Ar remote-ip-address |
.Op Fl u Ar username |
.Op Fl u Ar username |
.Op Ar user |
.Op Ar user |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
|
|
of the user fails, |
of the user fails, |
.Nm |
.Nm |
prompts for a user name. |
prompts for a user name. |
Authentication of users is done via passwords. |
Authentication of users is normally done via passwords, though |
Alternately, the user can enter the password |
external authentication mechanisms may be used (see |
.Qq s/key , |
.Xr login.conf 5 Ns No ). |
in which case |
To specify the alternate authentication mechanism |
S/Key authentication of users is performed, as descibed in |
.Va style , |
.Xr skey 1 . |
the string |
S/Key is a Trademark of Bellcore. |
.Li : Ns Va style |
|
is appended to the user name (i.e., |
|
.Ar user Ns Li : Ns Va style Ns ). |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
|
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 |
.It Fl L |
Specifies the remote user that initiated the connection. |
The |
It is used by various daemons such as |
.Fl L |
.Xr telnetd 8 . |
option specifies the local ip address of a socket such as telnetd |
This option may only be used by the superuser. |
would use. |
|
This information is passed on to any classify script (see |
|
.Xr login.conf 5 ) . |
.It Fl p |
.It Fl p |
By default, |
By default, |
.Nm |
.Nm |
|
|
The |
The |
.Fl p |
.Fl p |
option disables this behavior. |
option disables this behavior. |
|
.It Fl R |
|
The |
|
.Fl R |
|
option specifies the remote ip address of a socket such as telnetd |
|
would use. |
|
This information is passed on to any classify script (see |
|
.Xr login.conf 5 ) . |
|
.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. |
.El |
.El |
.Pp |
.Pp |
If the file |
If the file |
.Pa /etc/nologin |
.Pa /etc/nologin |
exists, |
exists (and the |
|
.Dq ignorenologin |
|
boolean is not set in the user's login class), |
.Nm |
.Nm |
displays its contents to the user and exits. |
displays its contents to the user and exits. |
This is used by |
This is used by |
|
|
.Bl -tag -width /var/log/failedlogin -compact |
.Bl -tag -width /var/log/failedlogin -compact |
.It Pa /etc/fbtab |
.It Pa /etc/fbtab |
changes device protections |
changes device protections |
|
.It Pa /etc/login.conf |
|
login configuration |
.It Pa /etc/motd |
.It Pa /etc/motd |
message-of-the-day |
message-of-the-day |
.It Pa /etc/nologin |
.It Pa /etc/nologin |
disallows logins |
disallows logins |
.It Pa /var/run/utmp |
.It Pa /var/run/utmp |
current logins |
current logins |
|
.It Pa /var/log/failedlogin |
|
failed login account records |
.It Pa /var/log/lastlog |
.It Pa /var/log/lastlog |
last login account records |
last login account records |
.It Pa /var/log/wtmp |
.It Pa /var/log/wtmp |
login account records |
login account records |
.It Pa /var/log/failedlogin |
|
failed login account records |
|
.It Pa /var/mail/user |
.It Pa /var/mail/user |
system mailboxes |
system mailboxes |
.It Pa \&.hushlogin |
.It Pa \&.hushlogin |
|
|
.Xr chpass 1 , |
.Xr chpass 1 , |
.Xr passwd 1 , |
.Xr passwd 1 , |
.Xr rlogin 1 , |
.Xr rlogin 1 , |
.Xr skey 1 , |
|
.Xr getpass 3 , |
.Xr getpass 3 , |
|
.Xr setusercontext 3 , |
.Xr fbtab 5 , |
.Xr fbtab 5 , |
|
.Xr login.conf 5 , |
.Xr utmp 5 , |
.Xr utmp 5 , |
.Xr environ 7 |
.Xr environ 7 |
.Sh HISTORY |
.Sh HISTORY |