Questions tagged [.netrc]

7 questions
21
votes
5 answers

Invalid cross-device link while Hardlinking in the same file system

I have /home/myuser/Desktop/rc/.netrc file that i want hardlink to /root, ie home directory of root user. When i do: ln /home/user/Destkop/rc/.netrc /root it gives the following error: ln: creating hard link /root/.netrc' =>.netrc': Invalid …
Elvin Aslanov
  • 367
  • 1
  • 3
  • 8
8
votes
2 answers

ncftp not looking into .netrc

I have this sort of stanza in my .netrc: machine ftp.mydomain.com login mylogin password mypassword and while I can successfully connect with ftp: ftp ftp.mydomain.com and passing credentials to ncftp: ncftp -umylogin -pmypassword…
neurino
  • 1,809
  • 3
  • 19
  • 25
4
votes
1 answer

CURL request using .netrc file

I am trying to write a script which is saving the credentials to a .netrc file and then it is reading from the file in order to pass them to a curl command and saves the returned cookie file for future use. I am interested if this is secure way to…
Georgi Stoyanov
  • 790
  • 4
  • 16
  • 41
3
votes
4 answers

Can lftp read netrc for sftp-connections

I am trying to create a script to upload some files to a server via SFTP. I can do that manually by opening an interactive lftp-session and providing username and password there. For the script, I would like to not hardcode credentials in the…
kronn
  • 389
  • 1
  • 4
  • 13
2
votes
1 answer

Character encoding of .netrc

Does anyone know which character encoding is used in .netrc? As a German user, I sometimes put umlauts in passwords. So my question is, are these treated as latin1 or may I assume that I am doing fine encoding the file in UTF-8?
1
vote
1 answer

Specify anonymous ftp password in ftp command

I would like a simple (ideally one-liner, without separate script file) command to connect to an ftp server via anonymous login using my email address as the password. My attempt is based on the syntax as shown here of basically ftp…
0
votes
1 answer

Why does curl -n fail in one script but not others?

Why does curl -n fail in one script but not others? curl 7.67.0 running on MacOS High Sierra The following code in one script: host="ftp.xxxxxx.com/public_html/" /opt/local/bin/curl -n -T $file $host -v Gives me this: > USER xxxx < 331 User xxxx…
Buadhai
  • 237
  • 4
  • 11