Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, I'm using proftpd for an ftp daemon and it's really pissing me off. I think it's ftp in general, actually but anyway... Anywhere on my LAN I can access ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Location
    Christchurch
    Posts
    12

    FTP Server


    Hi,
    I'm using proftpd for an ftp daemon and it's really pissing me off. I think it's ftp in general, actually but anyway... Anywhere on my LAN I can access my FTP server (my computer ). But, when i try it from 'outside' it just says either "530 Login Failed", or comes up with a login prompt and then says "530 Login Failed". My computer is behind a smoothwall firewall which is configured to forward ports 21 and 20 to it. Any suggestions as to what I can do?

  2. #2
    Just Joined!
    Join Date
    Oct 2004
    Posts
    49
    can you post your proftpd.conf file and part of the log file where the error occurs?

  3. #3
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Are you fowarding tcp and udp

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2004
    Location
    Christchurch
    Posts
    12
    Quote Originally Posted by Giro
    Are you fowarding tcp and udp
    haha oops, only forwarding TCP. Man, im so stupid . Well, actually smart for my age but still...

  6. #5
    Just Joined!
    Join Date
    Nov 2004
    Location
    Christchurch
    Posts
    12
    Code:
    ServerName                      "Edwins Music Share :P"
    ServerType                      standalone
    DefaultServer                   on
    
    Port                            21
    Umask                           022
    MaxInstances                    5
    
    User                            nobody
    Group                           nogroup
    
    SystemLog                       /var/log/proftpd.log
    TransferLog                     /var/log/xferlog
    
    #Okay, you put this line here yourself. It uses ports 37501-37505 as the passive ports.
    PassivePorts                    37501 37502 37503 37504 37505
    
    <Directory /*>
      AllowOverwrite                on
    </Directory>
    
    <Anonymous /home/ed/Music>
      RequireValidShell             off
      User                          ftp
      Group                         ftp
      # We want clients to be able to login with "anonymous" as well as "ftp"
      UserAlias                     anonymous ftp
    
      # Limit the maximum number of anonymous logins
      MaxClients                    50
    
      # We want 'welcome.msg' displayed at login, and '.message' displayed
      # in each newly chdired directory.
      DisplayLogin                  welcome.msg
      DisplayFirstChdir             .message
    
      # Limit WRITE everywhere in the anonymous chroot
      <Limit WRITE>
        DenyAll
      </Limit>
    </Anonymous>

  7. #6
    Just Joined!
    Join Date
    Oct 2004
    Posts
    49
    ANonymous directive should point for an user home

    then you should use the Directory directive to specify the place.

    it seems that you use a directory in anonymous directive and so no anonymous user is recognized by the server.

    try something like this change to suit your needs its just an example.

    # User Access Control
    <Limit LOGIN>
    Deny All
    </Limit>

    # Anonymous configuration
    <Anonymous /some_user_home>
    User ftp
    Group nogroup
    UserAlias anonymous ftp
    HideNoAccess on
    <Limit LOGIN>
    Allow All
    </Limit>
    <Limit ALL>
    Deny All
    </Limit>
    <Limit PWD CWD LIST RETR>
    Allow ALL
    </Limit>
    <Directory /dir>
    Umask 022 022
    <Limit MKD STOR>
    Allow All
    </Limit>
    </Directory>
    </Anonymous>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •