LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-12-2004, 07:36 AM   #1
immer
LQ Newbie
 
Registered: Oct 2003
Location: Somewhere in Europe :-)
Distribution: Linux Mint
Posts: 29

Rep: Reputation: 15
Proftpd and anonymous login problem from localhost.


Helo everybody.

Distribution: Fedora Core 2.
Service: proftpd compiled by myself:
Code:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --enable-shadow \
--with-modules=mod_tls:mod_ratio:mod_readme:mod_quotatab:mod_quotatab_file:mod_ifsession:mod_wrap && \
make && \
make install
I run proftpd by xinetd:
Code:
service ftp
{
disable = no
flags           = REUSE
socket_type     = stream
instances       = 50
wait            = no
user            = root
server          = /usr/sbin/proftpd
log_on_success  = HOST PID
log_on_failure  = HOST
}
My proftpd.conf file:
Code:
ServerName                      "ProFTPD Default Installation"
ServerType                      inetd
DefaultServer                   on
Port                            21
Umask                           022
MaxInstances                    30
User                            nobody
Group                           nobody

DefaultRoot ~

AllowOverwrite          on

<Limit SITE_CHMOD>
  DenyAll
</Limit>

<Anonymous ~ftp>
  User                          ftp
  Group                         ftp
  
UserAlias                       anonymous ftp

  MaxClients                    10

  DisplayLogin                  welcome.msg
  DisplayFirstChdir             .message

  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>
I create also ftp home directory with rights:
Code:
# ls -l /var |grep ftp
drwxr-xr-x   2 root ftp   4096 Dec 12 12:10 ftp
There is no iptables on this machine.

And now... the problem is...

When I try to log on anonymous account from the same machine and try to do simple ls command:
Code:
# ncftp localhost
NcFTP 3.1.7 (Jan 07, 2004) by Mike Gleason (http://www.NcFTP.com/contact/).
Connecting to 127.0.0.1...                                                                
ProFTPD 1.2.10 Server (ProFTPD Default Installation) [127.0.0.1]
Logging in...                                                                             
Anonymous access granted, restrictions apply.
Logged in to localhost.                                                                   
ncftp / > ls
Remote host has closed the connection.
List failed.
ncftp> 
...
But when I try to login from another host on network everything is OK. I can list files from anonymous account.

If I make a addition user account and try to log on it from localhost everything is ok also. I have only problem with login as anonymous from the same machine.

What it could be?

Best regards.
 
  


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
ProFTPD 1.2.10 Standalone - Unable to login with non-anonymous account dalesan Linux - Networking 3 10-14-2005 06:41 PM
anonymous ftp not working on localhost rolfbeethoven Linux - Newbie 2 07-27-2004 03:01 AM
Proftpd Anonymous login sxp03m Red Hat 0 10-28-2003 06:55 AM
proftpd anonymous login issues jstander Linux - Software 3 05-05-2003 07:11 PM
Proftpd Anonymous login badsvt351 Linux - Networking 2 02-15-2002 05:15 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration