The ".netrc" file is a security file that has zero permissions because
it contains identities that can access your system remotely.

You should be able to create it and secure it using:

      IDENTITY.DETAILS='hello world'
      SH.TEXT='echo "':IDENTITY.DETAILS:'" > ~/.netrc'
      EXECUTE "SH -c '":SH.TEXT:"'"
      SH.TEXT='chmod 000 ~/.netrc'
      EXECUTE "SH -c '":SH.TEXT:"'"

If you need to modify and existing file, use

      SH.TEXT='chmod 600 ~/.netrc'
      EXECUTE "SH -c '":SH.TEXT:"'"
      IDENTITY.DETAILS='hello world'
      SH.TEXT='echo "':IDENTITY.DETAILS:'" > ~/.netrc'
      EXECUTE "SH -c '":SH.TEXT:"'"
      SH.TEXT='chmod 000 ~/.netrc'
      EXECUTE "SH -c '":SH.TEXT:"'"

Obviously you will need two ">", ie: ">>", to add to an existing file.
The above commands replace the text in the existing file.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to