1LOGIN(1)                    General Commands Manual                   LOGIN(1)
2
3
4

NAME

6       login  -  sign on
7

SYNOPSIS

9       login [ username ]
10

DESCRIPTION

12       The  login command is used when a user initially signs on, or it may be
13       used at any time to change from one user to another.  The  latter  case
14       is  the  one  summarized  above  and  described  here.  See `How to Get
15       Started' for how to dial up initially.
16
17       If login is invoked without an argument, it asks for a user name,  and,
18       if appropriate, a password.  Echoing is turned off (if possible) during
19       the typing of the password, so it will not appear on the written record
20       of the session.
21
22       After  a successful login, accounting files are updated and the user is
23       informed of the existence of .mail and message-of-the-day files.  Login
24       initializes the user and group IDs and the working directory, then exe‐
25       cutes a command interpreter (usually sh(1)) according to specifications
26       found  in  a  password  file.  Argument 0 of the command interpreter is
27       `-sh.
28
29       Login is recognized by sh(1) and executed directly (without forking).
30

FILES

32       /etc/utmp      accounting
33       /usr/adm/wtmp  accounting
34       /usr/mail/*    mail
35       /etc/motd      message-of-the-day
36       /etc/passwd    password file
37

SEE ALSO

39       init(8), newgrp(1), getty(8), mail(1), passwd(1), passwd(5)
40

DIAGNOSTICS

42       `Login incorrect,' if the name or the password is bad.
43       `No Shell', `cannot open password file', `no directory': consult a pro‐
44       gramming counselor.
45
46
47
48                                                                      LOGIN(1)
Impressum