Anacron auto login from Cadaver (.netrc)

Hi :-)

Im using Cadaver (WebDav command line) to backup from my Linode (CentOs 6) to my home NAS. I use a shell script with .netrc credential to automate the task. When i run the script as root everything works as expected. The problem comes when i call the script from a daily anacron task.

I think that Anacron runs as a different user as root and doesnt have the credentials in .netrc. So im wondering who is the user that runs anacron or if someone knows how to set a .netrc so anacron gets credentials for "auto login".

Thanks for any help!

0 Replies

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct