Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

proftp problem

  • 27-02-2006 7:51pm
    #1
    Closed Accounts Posts: 2,039 ✭✭✭


    Hi

    I've got a Debian box that I've proftpd setup on using Synaptic. Anyway I've edited the /etc/proftpd.conf file and uncommented the section to allow anonymous ftp access. It all seems fine well to the extent that I can't see anything wrong with it. But when someone tries to log in with the anonymous user name. The FTP client on their machine gives back a 530 Login Incorrect error. I've checked through the docs for proftp and looked at the FAQ's on their website. I've got the appropriate aliases setup in proftpd.conf also.
    Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain (192.168.0.12[192.168.0.12]) - FTP session opened.
    
    Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain (192.168.0.12[192.168.0.12]) - mod_delay/0.4: delaying for 98 usecs
    
    Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain (192.168.0.12[192.168.0.12]) - no such user 'anonymous'
    
    Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain (192.168.0.12[192.168.0.12]) - mod_delay/0.4: delaying for 192 usecs
    
    Feb 27 19:52:28 localhost proftpd[7150]: localhost.localdomain (192.168.0.12[192.168.0.12]) - FTP session closed.
    

    Thats a section from the syslog file on my system. It says user anonymous doesn't exist but shouldn't proftpd be using the user ftp for anonymous logins as I mentioned above I've anonymous setup as one of the aliases for the ftp user. Anyone any ideas on whats wrong?

    Cheers
    Rory


Comments

  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Could you post the proftpd.conf file?
    Is it pulling any extra config in from an /etc/proftpd.d directory?

    NiallB


  • Closed Accounts Posts: 2,039 ✭✭✭rmacm


    Here's the proftpd.conf file. There isn't any /etc/proftpd.d directory for it to pull anything else from. Its strange as when I try logging in as a person who already has an account on the box i.e. me I can login fine.

    #
    # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
    # To really apply changes reload proftpd after modifications.
    #
    
    ServerName                      "Angelina"
    ServerType                      standalone
    DeferWelcome                    off
    
    MultilineRFC2228                on
    DefaultServer                   on
    ShowSymlinks                    on
    
    TimeoutNoTransfer               600
    TimeoutStalled                  600
    TimeoutIdle                     1200
    
    DisplayLogin                    welcome.msg
    DisplayFirstChdir               .message
    ListOptions                     "-l"
    
    DenyFilter                      \*.*/
    
    # Uncomment this if you are using NIS or LDAP to retrieve passwords:
    #PersistentPasswd               off
    
    # Uncomment this if you would use TLS module:
    #TLSEngine                      on
    
    # Uncomment this if you would use quota module:
    #Quotas                         on
    
    # Uncomment this if you would use ratio module:
    #Ratios                         on
    
    # Port 21 is the standard FTP port.
    Port                            21
    
    # To prevent DoS attacks, set the maximum number of child processes
    # to 30.  If you need to allow more than 30 concurrent connections
    # at once, simply increase this value.  Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd)
    MaxInstances                    30
    
    # Set the user and group that the server normally runs at.
    User                            nobody
    Group                           nogroup
    
    # Umask 022 is a good standard umask to prevent new files and dirs
    # (second parm) from being group and world writable.
    Umask                           022  022
    # Normally, we want files to be overwriteable.
    AllowOverwrite                  on
    
    # Delay engine reduces impact of the so-called Timing Attack described in
    # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
    # It is on by default.
    #DelayEngine                    off
    
    # A basic anonymous configuration, no upload directories.
    
    <Anonymous /home/ftp>
       User                         ftp
       Group                        ftp
    # We want clients to be able to login with "anonymous" as well as "ftp"
       UserAlias                    anonymous ftp
       AnonRequirePassword          off
    # Cosmetic changes, all files belongs to ftp user
       DirFakeUser  on ftp
       DirFakeGroup on ftp
    
       RequireValidShell            off
    
    # Limit the maximum number of anonymous logins
       MaxClients                   10
    
    #   # 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
       <Directory *>
         <Limit WRITE>
           DenyAll
         </Limit>
       </Directory>
    
    #Uncomment this if you're brave.
    #<Directory incoming>
    #       Umask           022  022
    #            <Limit READ WRITE>
    #            DenyAll
    #            </Limit>
    #            <Limit STOR>
    #            AllowAll
    #            </Limit>
    #</Directory>
    
    </Anonymous>
    
    


  • Registered Users, Registered Users 2 Posts: 2,755 ✭✭✭niallb


    Do you have an 'ftp' user with home directory /home/ftp ?
    It might just have aliased succesfully, and saying no
    user anonymous means no user ftp ...

    Worth checking.
    NiallB


  • Closed Accounts Posts: 2,039 ✭✭✭rmacm


    Checked this and yeah there's an 'ftp' user with the /home/ftp home directory...this has got me rightly confused :(

    Cheers
    Rory


Advertisement