version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
---- |
|
|
2 |
__NAME__ |
|
|
3 |
|
|
|
4 |
|
|
|
5 |
telnetlogin - login wrapper for telnetd |
|
|
6 |
__SYNOPSIS__ |
|
|
7 |
|
|
|
8 |
|
|
|
9 |
telnetlogin [[-h host] [[-p] [[username] |
|
|
10 |
__DESCRIPTION__ |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
telnetlogin is a setuid wrapper that runs login(1). |
|
|
14 |
It is meant to be invoked by telnetd(8); the idea |
|
|
15 |
is to remove the necessity of running telnetd as |
|
|
16 |
root. |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
telnetlogin should be installed mode 4750, user root, group telnetd. Then, telnetd may be run from /etc/inetd.conf as user ``nobody'', group ``telnetd'', and with the option -L path-to-telnetlogin. |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
telnetlogin accepts only the subset of options to |
|
|
23 |
login(1) shown above, in the order listed. This is |
|
|
24 |
the order telnetd 8 normally provides them in. telnetlogin |
|
|
25 |
also does sanity checks on the environment variables |
|
|
26 |
TERM, and REMOTEHOST. It also insists that |
|
|
27 |
the standard input, output, and error streams are open on a |
|
|
28 |
terminal, and that it is the process group leader of the |
|
|
29 |
foreground process of that terminal. After checking all of |
|
|
30 |
these conditions, checking the values of the above |
|
|
31 |
environment variables for reasonable values, resetting |
|
|
32 |
signal handlers, and so forth, it execs login. |
|
|
33 |
__SEE ALSO__ |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
login(1), inetd.conf(5), |
|
|
37 |
inetd(8), telnetd(8) |
|
|
38 |
__RESTRICTIONS__ |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
telnetlogin does not permit the -f option to login, so will |
|
|
42 |
not work with telnetds that perform authentication via Ker- |
|
|
43 |
beros or SSL. |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
THIS IS PRESENTLY EXPERIMENTAL CODE; USE WITH CAUTION. |
|
|
47 |
__HISTORY__ |
|
|
48 |
|
|
|
49 |
|
2 |
perry |
50 |
telnetlogin was written during the development of !NetKit |
1 |
perry |
51 |
0.17. |
|
|
52 |
|
|
|
53 |
|
2 |
perry |
54 |
Linux !NetKit (0.17) April 12, 2000 1 |
1 |
perry |
55 |
---- |