|
|
1.1 root 1: .TH LOGIN 8
2: .CT 1 sa_auto
3: .SH NAME
4: login \- sign on
5: .SH SYNOPSIS
6: .B /etc/login
7: .I name
8: .br
9: .B /etc/login
10: .B -f
11: .I name
12: [
13: .I cmd
14: ]
15: .br
16: .B /etc/login
17: .B -p
18: .I passwd-line
19: [
20: .I cmd
21: ]
22: .SH DESCRIPTION
23: .I Login
24: is executed by
25: .IR getty (8).
26: See the Introduction to this volume for how to dial up initially.
27: .PP
28: .I Login
29: asks for a password if appropriate.
30: Echoing is turned off during the typing of the password.
31: The
32: .B -f
33: option forces login of the named user, without a password.
34: .B -p
35: is similar to
36: .BR -f ,
37: but an entire line of password file information
38: is supplied.
39: .PP
40: .I Login
41: initializes the userid, the groupid, and the working directory
42: according to specifications found in the password file;
43: see
44: .IR passwd (5).
45: It also initializes environment variables
46: .SM PATH
47: and
48: .SM HOME .
49: Finally it executes a command interpreter (usually
50: .IR sh (1)).
51: Argument 0 of the command interpreter is its name with
52: a dash
53: .RL ( - )
54: prepended.
55: If
56: a
57: .I cmd
58: argument was present,
59: two additional arguments
60: .B -c
61: .I cmd
62: are passed,
63: and environment variable
64: .SM REXEC
65: is set to
66: .LR 1 .
67: .PP
68: Upon a successful login,
69: accounting files are updated and,
70: if no options are present,
71: the message of the day is printed
72: and the user is informed of the
73: existence of mail.
74: .PP
75: Successful logins are recorded in
76: .F /etc/utmp
77: and
78: .FR /usr/adm/wtmp .
79: If
80: .I cmd
81: was present,
82: .L *
83: is appended to the login name in
84: .IR wtmp ,
85: and
86: no record is made in
87: .IR utmp .
88: .PP
89: Only the super-user may execute
90: .IR login .
91: .SH FILES
92: .TF /usr/spool/mail/*
93: .TP
94: .F /etc/utmp
95: accounting
96: .TP
97: .F /usr/adm/wtmp
98: accounting
99: .TP
100: .F /usr/spool/mail/*
101: mail
102: .TP
103: .F /etc/motd
104: message-of-the-day
105: .TP
106: .F /etc/passwd
107: password file
108: .TP
109: .F /etc/group
110: groups file
111: .SH "SEE ALSO"
112: .IR newgrp (1),
113: .IR passwd (1),
114: .IR environ (5),
115: .IR passwd (5),
116: .IR getty (8),
117: .IR init (8),
118: .IR su (8),
119: .IR svcmgr (8).
120: .SH DIAGNOSTICS
121: `Login incorrect':
122: the name or the password is bad.
123: .br
124: `No Shell' or `no directory': the initial shell or
125: home directory specified in the password file does not exist.
126: .br
127: `Cannot open password file': things are badly curdled.
128: .SH BUGS
129: Information passed to options
130: .B -p
131: and
132: .B -f
133: is not checked.
134: Only trusted programs should run
135: .IR login .
136: Only trusted programs may usefully do so anyway;
137: .I login
138: has no privileges.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.