netlogin \- provide login name and password for a remote machine
command sets the login name and password for the specified
The user should type (to the C shell)
setenv\ MACH\fImachine\fR\ \(ganetlogin\ \-m\ \fImachine\fR\(ga
or (to the default Version 7 ``Bourne'' shell)
MACH\fImachine\fR=\(ganetlogin\ \-m\ \fImachine\fR\(ga; export MACH\fImachine\fR
to his login shell. (Note the back-quotes).
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'.
command will read the environment looking for environment variables
beginning with ``MACH'' and followed by a valid machine name on the
If found it will use that information rather than prompt the user
every time he executes a network command.
This environment information is ignored if login names and passwords
are specified on the command line of network commands using the
This procedure for specifying passwords is somewhat safer than
putting the remote passwords in the
The passwords in the environment are encrypted and the environment
information is useless after the user logs out.
command to see the encrypted password.
net(\*s), netrm(\*s), netq(\*s), netlog(\*s), netcp(\*s),
netlpr(\*s), netmail(\*s), printenv(\*o), csh(\*o)