mv machine dependent from sys_process.c
[unix-history] / usr / src / old / berknet / netlogin.1
CommitLineData
fbfecad0
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
7c71a5ca 5.\" @(#)netlogin.1 6.1 (Berkeley) %G%
fbfecad0 6.\"
7c71a5ca 7.TH NETLOGIN 1 "%G%"
fbfecad0
KM
8.UC 4
9.ds s 1
10.ds o 1
11.SH NAME
12netlogin \- provide login name and password for a remote machine
13.SH SYNOPSIS
14.B netlogin
15.B \-m
16machine [
17.B \-l
18login
19]
20.SH DESCRIPTION
21The
22.I netlogin
23command sets the login name and password for the specified
24.I machine
25in a rather unusual way.
26The user should type (to the C shell)
27.IP
28setenv\ MACH\fImachine\fR\ \(ganetlogin\ \-m\ \fImachine\fR\(ga
29.LP
30or (to the default Version 7 ``Bourne'' shell)
31.IP
32MACH\fImachine\fR=\(ganetlogin\ \-m\ \fImachine\fR\(ga; export MACH\fImachine\fR
33.PP
34to his login shell. (Note the back-quotes).
35For example,
36.IP
37setenv\ MACHA\ `netlogin\ \-m\ A`
38.PP
39will prompt the user for his login name and password on the A machine and
40.IP
41setenv\ MACHA\ `netlogin\ \-m\ A \-l\ myname`
42.PP
43will prompt the user for the password to account `A:myname'.
44.PP
45The
46.IR net (\*s)
47command will read the environment looking for environment variables
48beginning with ``MACH'' and followed by a valid machine name on the
49local network.
50If found it will use that information rather than prompt the user
51every time he executes a network command.
52This environment information is ignored if login names and passwords
53are specified on the command line of network commands using the
54.B \-l
55and
56.B \-p
57options or in the
58.I \&.netrc
59file.
60.PP
61This procedure for specifying passwords is somewhat safer than
62putting the remote passwords in the
63.I \&.netrc
64file.
65The passwords in the environment are encrypted and the environment
66information is useless after the user logs out.
67Use the
68.IR printenv (\*o)
69command to see the encrypted password.
70.SH AUTHOR
71Eric Schmidt
72.SH "SEE ALSO"
73net(\*s), netrm(\*s), netq(\*s), netlog(\*s), netcp(\*s),
74netlpr(\*s), netmail(\*s), printenv(\*o), csh(\*o)
75.SH BUGS