notroj / cadaver

Command-line WebDAV client
GNU General Public License v2.0
83 stars 10 forks source link

automatic login with .cadaverrc and .netrc not working #25

Open agrahn opened 1 year ago

agrahn commented 1 year ago

I would like to connect to a webdav file space on the internet and have cadaver only ask for my password.

So I have created a ~/.cadaverrc file

open https://webdav.smartdrive.web.de

and a ~/.netrc file

default
login my.login@web.de

(The login is the connected user email.)

However cadaver seems to ignore the .netrc file since it constantly asks for the user name instead of going straight to ask for the user password. Am I missing something here?

Thank you for your hints.

notroj commented 1 year ago

Can you try using host webdav.smartdrive.web.de instead of default ? I'm not sure cadaver respects default?

santa2021 commented 1 year ago

I would like to connect to a webdav file space on the internet and have cadaver only ask for my password.

So I have created a ~/.cadaverrc file

open https://webdav.smartdrive.web.de

and a ~/.netrc file

default
login my.login@web.de

(The login is the connected user email.)

However cadaver seems to ignore the .netrc file since it constantly asks for the user name instead of going straight to ask for the user password. Am I missing something here?

Thank you for your hints.

I changed the variable HOME in file cadaver.c, and set the file location .cadaverrc & .netrc. After that cadaver works fine