You are here: Home / Help / FAQ / HPSS / How can I use the HPSS tape archive without typing my password every time, e.g. in scripts or jobs?

How can I use the HPSS tape archive without typing my password every time, e.g. in scripts or jobs?

Create a file called .netrc in your HOME directory, which has only read and write permissions for yourself:

mlogin100$ ls -la $HOME/.netrc
-rw------- ..... /home/dkrz/<uid>/.netrc
mlogin100$ cat $HOME/.netrc
machine tape.dkrz.de login <uid> password <password>
machine lhp.dkrz.de  login <uid> password <password>

Be aware that special characters like "/ "or "," should be escaped with a backslash or quoted, e.g.

machine tape.dkrz.de login u123456 password Null\,nix
machine tape.dkrz.de login u123456 password "Null,nix"

In some configurations an adaption might be necessary. So, if this doesn't work for you,
please contact 

Document Actions