The .netrc file
The .netrc file contains data for logging in to a remote database server over the network.
Create the .netrc file in the home directory where the client computer initiates the connection. Set the .netrc file permissions for the user to deny read access by the group and others.
To connect to a remote database server, create entries in the .netrc file for the LogonID and pwd required to autoconnect to the data source. To establish a connection to a remote data source, the ODBC driver first reads the LogonID and pwd from the data source entry in the $HOME/.odbc.ini file. If the $HOME/.odbc.ini file does not specify a LogonID and pwd, the ODBC driver searches the $HOME/.netrc file.
machine ray login log8in password mypassword
For information about the .netrc file, see the UNIX man pages.