These steps describe how to create and edit the $HOME/.netrc file:
- You must have a copy of the /usr/samples/tcpip/netrc file.
- The securetcpip command must not be running on your system.
To create the .netrc file:
- Copy the /usr/samples/tcpip/netrc file to your $HOME directory by typing the following command:
cp /usr/samples/tcpip/netrc $HOME
- Edit the $HOME/netrc file to supply the appropriate HostName, LoginName, and Password variables. For example:
machine host1.austin.century.com login fred password bluebonnet
- To set the permissions on the $HOME/netrc file to 600 by using the chmod command at the command line prompt (
chmod 600 $HOME/netrc
- Rename the $HOME/netrc file to $HOME/.netrc file. The initial period (.) causes the file to be hidden.
mv $HOME/netrc $HOME/.netrc
The $HOME/.netrc file can contain multiple login definitions and up to 16 macros per login definition.