|
|
BSD 4.3tahoe
NETLOGIN(1) UNIX Programmer's Manual NETLOGIN(1)
NAME
netlogin - provide login name and password for a remote
machine
SYNOPSIS
netlogin -m machine [ -l login ]
DESCRIPTION
The _n_e_t_l_o_g_i_n command sets the login name and password for
the specified _m_a_c_h_i_n_e in a rather unusual way. The user
should type (to the C shell)
setenv MACH_m_a_c_h_i_n_e `netlogin -m _m_a_c_h_i_n_e`
or (to the default Version 7 ``Bourne'' shell)
MACH_m_a_c_h_i_n_e=`netlogin -m _m_a_c_h_i_n_e`; export MACH_m_a_c_h_i_n_e
to his login shell. (Note the back-quotes). For example,
setenv MACHA `netlogin -m A`
will prompt the user for his login name and password on the
A machine and
setenv MACHA `netlogin -m A -l myname`
will prompt the user for the password to account `A:myname'.
The _n_e_t(1) command will read the environment looking for
environment variables beginning with ``MACH'' and followed
by a valid machine name on the local network. If found it
will use that information rather than prompt the user every
time he executes a network command. This environment infor-
mation is ignored if login names and passwords are specified
on the command line of network commands using the -l and -p
options or in the ._n_e_t_r_c file.
This procedure for specifying passwords is somewhat safer
than putting the remote passwords in the ._n_e_t_r_c file. The
passwords in the environment are encrypted and the environ-
ment information is useless after the user logs out. Use
the _p_r_i_n_t_e_n_v(1) command to see the encrypted password.
AUTHOR
Eric Schmidt
SEE ALSO
net(1), netrm(1), netq(1), netlog(1), netcp(1), netlpr(1),
netmail(1), printenv(1), csh(1)
Printed 7/26/87 4/29/85 1
NETLOGIN(1) UNIX Programmer's Manual NETLOGIN(1)
BUGS
Printed 7/26/87 4/29/85 2
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.