LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2015, 06:56 PM   #1
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Rep: Reputation: 15
Trouble configuring vsftp


Using a Raspberry Pi w/ Debian

Read the manual and several "how-to"s and am getting nowhere

vsftp is running and making a log file. I can get to the Pi with putty or SAMBA

Ultimately want to be able to both(I) ftp in under the "pi" user to access files remotely and (II) have people sending me huge files ftp them in anonymously

Have tried (I) the ftp client in Windows 7 Internet explorer 11, (ii) the ftp client in the Windows 7 "map network drive" UI, and (iii) ES file explorer on my Android phone.

The android phone tells me there is no server there. Windows 7 gets no password challenge, gives no error indication, but does nothing useful. The vsftpd log file shows some attempt by the Windows machine, nothing for the Android.

Config file and log file attached.

The Android is trying to use port 21, the config file mentions something about port 20. Which ports do I need to forward in my router to enable remote access?

Any help appreciated.

Thanks. Jonathan
Attached Files
File Type: txt vsftpd.conf.txt (5.4 KB, 61 views)
File Type: txt vsftpd.log.txt (865 Bytes, 31 views)
 
Old 05-23-2015, 05:24 PM   #2
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Keeps getting worse

Trying more intelligent things, and now things are worse

shutdown -r "now" does not reboot
/etc/init.d/vsftpd restart says the server is restarting, but looking at status immediately afterwards vsftpd is not running.
I can see no indication of why vsftpd failed to start - is there another log file somewhere??
Updated .conf and .log files attached

Any thoughts?

Thanks

Jonathan
Attached Files
File Type: txt vsftpd.conf.txt (5.7 KB, 59 views)
File Type: txt vsftpd.log.txt (1.5 KB, 23 views)
 
Old 05-23-2015, 08:04 PM   #3
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 518

Rep: Reputation: 177Reputation: 177
Not on a Pi so I can't help with "shutdown" but jfyi using your vsftpd.conf file on my machine yields:
Quote:
# /etc/init.d/vsftpd restart
[ ok ] Stopping FTP server: vsftpd.
[warn] Starting FTP server: vsftpd[....] vsftpd failed - probably invalid config. ... (warning)
It started fine after correcting the following typo:
Code:
anon_roor=/home/pi/ftp/files/anon_home
HTH
 
1 members found this post helpful.
Old 05-24-2015, 07:12 AM   #4
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks for the typo - looked at that a dozen times without seeing it. So vsftpd now starts successfully.

But no client connects to ftp (everything connects to SAMBA and putty on the pi, so I think the transport is probably okay), the messages I see from the client suggests the pi is not responding to connection requests.

Worse still, now no log file entries are being made (that - at least - was happening a couple of days ago).

and the value of connect through port 20 has no impact on the behavior.
 
Old 05-24-2015, 10:14 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You have anonymous_enable=NO in the config file which disables anonymous logins. What username, password are you using to login into the Pi? Are you tryng to login through the router or your local LAN? Have you tried logging to ftp on the Pi itself?

Here is how FTP works and how port 20 fits in:

http://www.jscape.com/blog/bid/80512...FTP-Simplified
 
1 members found this post helpful.
Old 05-24-2015, 12:29 PM   #6
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Many thanks for the link to the article - it will eventually be relevant to me, but as a first step, I am just going through the LAN, not out to the public internet and back in.

Trying to log in to the "pi" user - not seeing any challenge in the Windows client(s),and the Android ES file explorer collects UID/PWD before attempting to FTP;

The windows clients work on a different ftp server on my LAN; the android thing is not working ... apparently separate issue

What is the procedure for "logging to ftp on the Pi itself"

Thanks
 
Old 05-24-2015, 01:24 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,938

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
If you are actually use a keyboard / monitor or connect via ssh just type in a terminal
Ftp localhost

Use a real user and password at the prompts.
 
Old 05-24-2015, 10:20 PM   #8
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
OK, my issue was with the clients

a) the Windows GUI based stuff is ill-adapted to cooperating with the Pi. Turns out that if you refresh the "page" in IE after it fails, you get a password prompt which works
b) the Android I think was just timing out too fast ... searching for the server worked (same info as I was typing in, now memorized properly)
c) the Windows DOSBox command line ftp works just fine - should have thought to test this earlier

So, on to my next configuration challenges ;-)

Thanks again
 
  


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
Trouble with vsftp deathsfriend99 Linux - Server 4 03-28-2009 12:11 AM
Configuring Default Directory in vsftp for all ftp users winxandlinx Linux - Networking 0 05-29-2006 04:10 AM
A little trouble with configuring X orange400 Linux - Software 3 05-12-2006 04:41 PM
problem configuring vsftp server juanb Linux - General 11 09-27-2005 12:01 AM
having trouble configuring x krackerroot Linux - Newbie 3 09-11-2003 10:25 AM


All times are GMT -5. The time now is 12:19 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