LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2005, 12:59 PM   #1
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
ftp & wget login not working


Hello All,

I'm trying to recursively download a buch of files from a site, and thus I have to use wget.

I'm trying to login wget ftp://servername but I then get booted out because I didn't include the username / password. How do I include the username password in ONE string using both wget and ftp?

Any thoughts?
 
Old 02-10-2005, 01:24 PM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
wget:
Quote:
--http-user=user
--http-passwd=password
Specify the username user and password password on an
HTTP server. According to the type of the challenge,
Wget will encode them using either the "basic" (inse_
cure) or the "digest" authentication scheme.

Another way to specify username and password is in the
URL itself. Either method reveals your password to
anyone who bothers to run "ps". To prevent the pass_
words from being seen, store them in .wgetrc or
.netrc, and make sure to protect those files from
other users with "chmod". If the passwords are really
important, do not leave them lying in those files
either---edit the files and delete them after Wget has
started the download.
ftp:
Quote:
user user-name [password] [account]
Identify yourself to the remote FTP server. If the password
is not specified and the server requires it, ftp will prompt
the user for it (after disabling local echo). If an account
field is not specified, and the FTP server requires it, the
user will be prompted for it. If an account field is speci_
fied, an account command will be relayed to the remote server
after the login sequence is completed if the remote server
did not require it for logging in. Unless ftp is invoked
with ``auto-login'' disabled, this process is done automati_
cally on initial connection to the FTP server.
 
Old 02-10-2005, 01:58 PM   #3
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
It still says I'm logging in as anonymous

wget -r user administrator ftp://XXXXX

Any other thoughts?

Has anyone ever tested this really; anybody have the whole string that needs to be used?
 
Old 02-10-2005, 02:05 PM   #4
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
Hello secesh, from that man you posted...

would you know how to disable the local echo?

That is actually the problem, that he doesn't prompt me for the password and just refuses the connection...
 
Old 02-10-2005, 02:10 PM   #5
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
This is the actual string I use:

wget -r ftp://administrator@XXXXX
...
Logging in as administrator ...
Login incorrect.
unlink: No such file or directory

*** At this stage is where I would expect a prompt from the server so I could type in my password, but that's what not happening...

Any thoughts?
 
Old 02-10-2005, 02:22 PM   #6
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
Got it:

"wget -r ftp://usernameassword@SERVERNAME/directory"

Hope it helps someody out!

Last edited by vous; 02-10-2005 at 02:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keyboard & Mouse Not Working At Login With Linux-Mandrake 6.5 Rafiki Linux - Software 7 06-04-2005 10:07 PM
wget & ftp proxy authentication dunric Linux - Networking 0 10-04-2004 12:16 PM
wget from a ftp thesnaggle Linux - Networking 1 11-06-2003 12:03 PM
ftp & telnet 127.0.0.1 aren't working rinux Linux - Newbie 5 05-24-2003 06:18 PM
Linux FTP & Telnet Not working after Apache load rtucker Linux - Newbie 1 02-21-2002 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration