The .netrc file contains data for logging into a remote database server over the network. For information on the .netrc file, see the UNIX man pages. 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.
For example, to allow an autologin to the computer called ray using the login name log8in with password mypassword, your .netrc file should contain the following line:
machine ray login log8in password mypasswordHome | [ Top of Page | Previous Page | Next Page | Contents | Index ]