|
|
1.1 root 1:
2:
3: login Command login
4:
5:
6:
7:
8: Log in or change user name
9:
10: llooggiinn [_u_s_e_r_n_a_m_e]
11:
12: The COHERENT system normally invokes login as part of the log in
13: sequence on an unused terminal. The user may also invoke login
14: directly from the shell sh, usually to change to a different user
15: name. If username is not present, login prompts the user. If
16: the account has a password, login asks for it.
17:
18: If the user logs in successfully, login then reads the file
19: /etc/motd (which holds the ``message of the day'') and prints its
20: contents on the screen, then notifies the user if mail is
21: waiting to be read. It then sets the working directory to the
22: user's base directory and sets the user id and group id, trans-
23: fers ownership of the tty to the user, and updates the login ac-
24: counting file. Finally, if a program is specified in
25: /etc/passwd, login reads /etc/profile for lines beginning ``ex-
26: port'', inserts the remainder of the line into the environment,
27: then executes the specified program. If the program field is
28: blank, login executes sh, which executes the contents of
29: $HOME/.profile if it is present.
30:
31: From the shell, a user may log in by typing login or by typing an
32: end of file (normally <ctrl-D>) to terminate the previous shell.
33:
34: When the superuser rroooott logs in, login sets HHOOMMEE to `/' and reads
35: the file /.profile should one exist.
36:
37: ***** Files *****
38:
39: /eettcc/llooggmmssgg -- Login message (default, ``Coherent login:'')
40: /eettcc/ppaasssswwdd -- User information
41: /eettcc/pprrooffiillee -- System profile
42: /eettcc/mmoottdd -- Message of the day
43: /eettcc/uuttmmpp -- Users currently using system
44: /uussrr/aaddmm/wwttmmpp -- Login accounting history
45: /uussrr/aaddmm/ffaaiilleedd -- Log of failed login attempts
46: $HHOOMMEE/.pprrooffiillee -- User profile
47:
48: ***** See Also *****
49:
50: ac, commands, getty, sh, su, utmp.h
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.