tags:

views:

193

answers:

3

I am trying to get a jar file under this path /usr/test/ but i only have a user id other than root. So after I issue wget ftp://mike:[email protected]:/usr/test/getme.txt

the code return: TYPE I ... done. ==> CWD 'mike.'/usr/test/... No such directory `usr/test/'.

I believe the problem is after I ftp in as mike, by default I am in the mike personal directory... The question will be how to use wget and do this task though.

Please help!!! Thanks.

+1  A: 

The site you are ftping from has set it so that user accounts are "chrooted", so they can only access their home directory and below. You have to change the FTP server configuration if you can.

Paul Tomblin
A: 

Sometimes wget ftp://mike:[email protected]:/../../../../usr/test/getme.txt works.

Joshua
A: 

wget ftp://mike:[email protected]:/usr/test/getme.txt

This should work: wget ftp://mike:[email protected]//usr/test/getme.txt

(note the double //)