1 .\" Copyright (c) 1980, 1990, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)login.1 8.2 (Berkeley) 5/5/94
39 .Nd log into the computer
49 .Op Ar user Op Ar prog Op Ar args...
53 utility logs users (and pseudo-users) into the computer system.
55 If no user is specified, or if a user is specified and authentication
58 prompts for a user name.
59 Authentication of users is done via passwords.
61 The options are as follows:
67 option is used when a user name is specified to indicate that proper
68 authentication has already been done and that no password need be
70 This option may only be used by the super-user or when an already
71 logged in user is logging in as themselves.
75 option, an alternate program (and any arguments) may be run instead of the
77 The program and arguments follows the user name.
82 option specifies the host from which the connection was received.
83 It is used by various daemons such as
85 This option may only be used by the super-user.
88 Tells the program executed by
90 that this is not a login session (by convention, a login session is
91 signalled to the program with a hyphen as the first character of
93 this option disables that), and prevents it from chdir(2)ing to the user's home directory.
94 The default is to add the hyphen (this is a login session).
99 discards any previous environment.
102 option disables this behavior.
105 This forces quiet logins, as if a
114 dislays its contents to the user and exits.
117 to prevent users from logging in when the system is about to go down.
119 Immediately after logging a user in,
121 displays the system copyright notice, the date and time the user last
122 logged in, the message of the day as well as other information.
125 exists in the user's home directory or
127 is specified, all of these messages are suppressed.
128 This is to simplify logins for non-human users, such as
131 then records an entry in
133 and the like, and executes the user's command interpreter (or the program
134 specified on the command line if
138 Login enters information into the environment (see
140 specifying the user's home directory (HOME), command interpreter (SHELL),
141 search path (PATH), terminal type (TERM) and user name (both LOGNAME and
148 do not fork before executing the
152 .Bl -tag -width /var/mail/userXXX -compact
157 .It Pa /var/run/utmpx
159 .It Pa /var/mail/user