LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2019, 10:45 AM   #1
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 61

Rep: Reputation: 11
ProFTPd anonymous login on loopback interface fail.


OK I know I'm missing something, but I can't see what, help.

I have a working install of proftpd 1.3.6b on slackware64 14.2, which all works as it should, but it won't allow anonymous logins on the loopback interface.

Here's two uploads, made from the same ssh session on the system.

To the loopback interface (fails)
Code:
root@rsf:/etc# curl -v -s -T /etc/hosts ftp://127.0.0.1/
*   Trying 127.0.0.1:21...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 21 (#0)
< 220 Welcome
> USER anonymous
< 331 Password required for anonymous
> PASS ftp@example.com
< 530 anonymous is not authorized
* Access denied: 530
* Closing connection 0
To the external IP address (works)
Code:
root@rsf:/etc# curl -v -s -T /etc/hosts ftp://192.168.110.211/
*   Trying 192.168.110.211:21...
* TCP_NODELAY set
* Connected to 192.168.110.211 (192.168.110.211) port 21 (#0)
< 220 ProFTPD Server[::ffff:192.168.110.211]
> USER anonymous
< 331 Anonymous login ok, send your complete email address as your password
> PASS ftp@example.com
< 230 Anonymous access granted, restrictions apply
> PWD
< 257 "/" is the current directory
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||51759|)
*   Trying 192.168.110.211:51759...
* TCP_NODELAY set
* Connecting to 192.168.110.211 (192.168.110.211) port 51759
* Connected to 192.168.110.211 (192.168.110.211) port 21 (#0)
> TYPE I
< 200 Type set to I
> STOR hosts
< 150 Opening BINARY mode data connection for hosts
} [619 bytes data]
* We are completely uploaded and fine
* Remembering we are in dir ""
< 226 Transfer complete
proftpd log shows
Code:
crypt(3) failed: Invalid argument
USER ftp (Login failed): Incorrect password
USER anonymous: no such user found from localhost [127.0.0.1] to ::ffff:127.0.0.1:21.
But only for login attemptgs through 127.0.0.1.
All logins through the external IP work.

Help... please.
 
Old 11-29-2019, 07:16 PM   #2
dowelld
Member
 
Registered: Jan 2005
Location: Somerset, UK
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 11
For the record.

This was because I'd encased the proftpd ftp service in a <VirtualHost> Directive.
 
  


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
[SOLVED] if [[ -n "$1" ]]; then FAIL FAIL FAIL rbees Programming 7 03-25-2015 03:39 PM
[SOLVED] 500 OOPS: vsftpd: refusing to run with writable anonymous root: Anonymous Login sanjay87 Linux - Server 5 08-14-2012 02:28 AM
[SOLVED] problem with ethernet loopback test using loopback plug/stub: receiving socket not se mcha Linux - Kernel 3 08-26-2010 12:28 PM
Problems with anonymous login proftp 1.3.1: 530-Unable to set anonymous priviliges. gentooox Linux - Server 3 05-03-2009 03:46 PM
fail upon boot, loopback interface LQ496873 Linux From Scratch 1 06-24-2006 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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