On Unix and VM/CMS systems, the .netrc DOT NETRC A0 on VM/CMS systems) have the following format. On Unix systems these files must reside in the home directory of the relevant user and be correctly protected using the command
Protecting a .netrc file
chmod 0600 .netrc
Format of the .netrc files
machine <host-name> login <user-name> password <password> e.g. machine cernvm login zftptest password kwerdal
On VAX/VMS systems, the file is named ftplogin.; and should again reside in the home directory. It should be protected as follows:
Protecting an ftplogin file
SET FILE/PROTECTION=(S,W,G,O:R) FTPLOGIN.;
The format of this file is somewhat simpler, containing no keywords, as shown in the following example.
An example of an ftplogin file
cernvnm zftptest kwerdal vxcrna zftptest -
Note that the minus sign will cause a prompt for the password.