NETLOGIN(1) — UNIX Programmer’s Manual
NAME
netlogin − provide login name and password for a remote machine
SYNOPSIS
netlogin −m machine [ −l login ]
DESCRIPTION
The netlogin command sets the login name and password for the specified machine using an unconventional procedure. The user should type to the C shell the following:
setenv MACHmachine `netlogin −m machine`
or (to the default Version 7 “Bourne” shell)
MACHmachine=`netlogin −m machine`; export MACHmachine
to his login shell. (Note the back-quotes). For example, sending the following
setenv MACHA ‘netlogin −m A‘
prompts the user for his login name and password on the A machine and sending
setenv MACHA ‘netlogin −m A −l myname‘
prompts the user for the password to account ‘A:myname’.
The net(1) command reads the environment searching for environment variables beginning with “MACH” and followed by a valid machine name on the local network. If found net(1) uses 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 −l and −p options) or in the .netrc file.
This procedure for specifying passwords is somewhat safer than placing the remote passwords in the .netrc file. The passwords in the environment are encrypted and the environment information is useless after the user logs out. Use the printenv(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)
BUGS
4th Berkeley Distribution — %W%%Q%%Y%