LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-28-2006, 04:38 AM   #1
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Rep: Reputation: 33
lftp does not list files


I configure ftp server(192.168.123.143) base on vsftp, and grant the anonymous user to create directory, upload and get files. In order to verify my work, I use another machine 192.168.123.8, run "lftp" program:
Code:
[root@Shenzhen ~]# lftp 192.168.123.143
lftp 192.168.123.143:~> ls
drwxrwxrwx    2 0        0            4096 Dec 28 08:57 new
lftp 192.168.123.143:/> cd new/
cd ok, cwd=/new
lftp 192.168.123.143:/new> ls
-rw-r--r--    1 500      500             0 Dec 28 08:57 pub.pub
lftp 192.168.123.143:/new> put new.new
8999 bytes transferred 
lftp 192.168.123.143:/new> ls
-rw-r--r--    1 0        0               0 Dec 28 08:51 new.new
-rw-r--r--    1 500      500             0 Dec 28 08:57 pub.pub
lftp 192.168.123.143:/new> mkdir aaaa
mkdir ok, `aaaa' created
lftp 192.168.123.143:/new> cd aaaa/
cd ok, cwd=/new/aaaa
lftp 192.168.123.143:/new/aaaa> put install.log
59983 bytes transferred   
lftp 192.168.123.143:/new/aaaa> ls
lftp 192.168.123.143:/new/aaaa>
As the red marked texts, "ls" displays no result. I had to return back to ftp machine(192.168.123.143), and found that if execute ls in /var/ftp/new/aaaa directory, the uploaded file is all listed absolutely:
Code:
[root@FTP_SERVER aaaa]# ls -l
total 108
-rw-------    1 ftp      ftp         59983 Dec 28 17:27 install.log
I've googled and found nothing about this issue. Please give me some hints.

Thanks,
Phillip

Last edited by PhillipHuang; 12-28-2006 at 05:03 AM.
 
Old 12-28-2006, 05:09 AM   #2
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 10.04
Posts: 198

Original Poster
Rep: Reputation: 33
Really a stupid question, and I'm sorry for your time reading.
"drwx------ aaaa" with "ls -l /var/ftp/new/", of course it would not be listed by anonymous user.

It takes me some time to find "Delete thread" button, but i did not found. Sorry again for my foolish question, perhaps I were too tired.

Regards,
Phillip

Last edited by PhillipHuang; 12-28-2006 at 05:11 AM.
 
  


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
lftp mikeshn Linux - Software 11 07-20-2011 01:44 PM
FXP with lftp... thedp Linux - Software 0 07-01-2006 08:03 AM
lftp HELP knappster Linux - Software 2 08-03-2004 11:34 AM
lftp Scripting kittani Linux - Software 1 06-19-2004 12:28 PM
about lftp oskernel Linux - Software 1 10-29-2003 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration