Home » Infrastructure » Linux » A question about blank password in a ftp connection
A question about blank password in a ftp connection [message #126487] Tue, 05 July 2005 04:13 Go to next message
egdiaz
Messages: 2
Registered: July 2005
Junior Member
Hello to everybody,

i have a question about a ftp connection. I'm using now an automatic ftp connection using .netrc file like this:

.netrc:

machine IP_SERVER
login USER
password PASSW
macdef init
binary
get "download.zip" "file.zip"
quit

So, if i type "ftp IP_SERVER" i download the file.

Well, my question is that in this way i can't use a connection with a blank password in the login, because if i change PASSW to blank it dowsn work.

So, How can i use .netrc file to a blank password ftp connections??

Thanks in advanced!!!
Kike
Re: A question about blank password in a ftp connection [message #126523 is a reply to message #126487] Tue, 05 July 2005 06:37 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
My experience with unix is very limited.
I dont think you can use a blank password in .netrc
The contents of .netrc is visible only to the user.
So the password is secured.
So what is your issue?
Re: A question about blank password in a ftp connection [message #126653 is a reply to message #126523] Wed, 06 July 2005 02:11 Go to previous message
egdiaz
Messages: 2
Registered: July 2005
Junior Member
I don't care in that moment who can read .netrc file

I use .netrc file to create an automatic ftp connection (download a file to a ftp server from a java application)

My problem is when the ftp account has a blank password because .netrc file doesn't admit it

Any ideas? Thanks!!
Kike
Previous Topic: i can't connect the Oracle!1
Next Topic: Installation
Goto Forum:
  


Current Time: Thu Apr 18 18:53:42 CDT 2024