Error 550 while trying to upload with FTP

Discussion in 'Installation/Configuration' started by ebmar, Nov 20, 2007.

  1. ebmar

    ebmar New Member

    Hi.
    I get error 550 when I try to upload/create/delete folders using FTP.
    When i logon with SSH with the same user I can delete and create folders.

    The user is set to administrator in ISPconfig.

    I've tried to upgrade ISPconfig with no luck.

    I have also searched the forum and couldn't find anything that helps.

    Anyone got a solution?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    To which directory do you try to upload files?
     
  3. ebmar

    ebmar New Member

    /var/www/web66/web/

    as uses web66_username
    The user got administrator rights.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Does this affects only this site or all sites?
     
  5. ebmar

    ebmar New Member

    This affects all sites.

    The server is a Ubuntu 6.06 LTS.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your logs?
    What's the output of
    Code:
    ls -la /var/www/web66/web/
    ?
    What's in your proftpd.conf?
     
  7. ebmar

    ebmar New Member

    ls -la web/
    Code:
    drwxrwxrwx 4 web66_username web66 4096 2007-11-21 04:00 .
    drwxrwxrwx 9 web66_username web66 4096 2007-11-21 04:00 ..
    drwxr-xr-x 2 root         root  4096 2007-11-19 20:03 error
    -rw-rw-r-- 1 web66_username web66 1212 2007-11-20 11:41 index.html
    drwxr-xr-x 2 web66_username web66 4096 2007-11-21 04:00 stats
    proftpd.conf
    Code:
    #
    # Includes required DSO modules. This is mandatory in proftpd 1.3
    #
    Include /etc/proftpd/modules.conf
    
    #DefaultRoot ~
    IdentLookups off
    ServerIdent on "FTP Server ready."
    #
    # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
    # To really apply changes reload proftpd after modifications.
    #
    
    ServerName                      "Debian"
    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
    # 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 ~ftp>
    #   User                                ftp
    #   Group                               nogroup
    #   # We want clients to be able to login with "anonymous" as well as "ftp"
    #   UserAlias                   anonymous ftp
    #   # 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 is a good standard umask to prevent new files and dirs
    #   #   # (second parm) from being group and world writable.
    #   #   Umask                           022  022
    #   #            <Limit READ WRITE>
    #   #            DenyAll
    #   #            </Limit>
    #   #            <Limit STOR>
    #   #            AllowAll
    #   #            </Limit>
    #   # </Directory>
    #
    # </Anonymous>
    
    
    
    
    Include /etc/proftpd/proftpd_ispconfig.conf
    
    proftpd_ispconfig.conf
    Code:
    ###################################
    #
    # ISPConfig proftpd Configuration File
    #         Version 1.0
    #
    ###################################
    <VirtualHost 139.164.161.10>
            DefaultRoot             ~
            AllowOverwrite          on
            Umask                   002
    </VirtualHost>

    A bit of auth.log
    Code:
    Nov 21 12:18:55 webserver proftpd[15341]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - USER anonymous: no such user found from ::ffff:10.149.35.19 [::ffff:10.149.35.19] to ::ffff:139.164.161.10:21
    Nov 21 12:18:55 webserver proftpd[15341]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - mod_delay/0.5: delaying for 58 usecs
    Nov 21 12:19:03 webserver proftpd: (pam_unix) session opened for user web66_fysikk by (uid=0)
    Nov 21 12:19:03 webserver proftpd[15341]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - USER web66_username: Login successful.
    Nov 21 12:19:04 webserver proftpd[15341]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - Preparing to chroot to directory '/var/www/web66'
    Nov 21 12:19:04 webserver proftpd[15341]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - error setting IPV6_V6ONLY: Protocol not available
    Nov 21 12:19:20 webserver last message repeated 7 times
    Nov 21 12:19:21 webserver proftpd[15346]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - USER anonymous: no such user found from ::ffff:10.149.35.19 [::ffff:10.149.35.19] to ::ffff:139.164.161.10:21
    Nov 21 12:19:21 webserver proftpd[15346]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - mod_delay/0.5: delaying for 130 usecs
    Nov 21 12:19:24 webserver proftpd[15346]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - FTP session closed.
    Nov 21 12:20:17 webserver proftpd: (pam_unix) session closed for user web66_fysikk
    Nov 21 12:20:17 webserver proftpd[15341]: webserver (::ffff:10.149.35.19[::ffff:10.149.35.19]) - FTP session closed.
    
    Has it something to do with IPv6?

    Got the IPv6 error corrected.


    But the problem is still there.
     
    Last edited: Nov 22, 2007
  8. falko

    falko Super Moderator ISPConfig Developer

    What happens if you comment out
    Code:
    Include /etc/proftpd/proftpd_ispconfig.conf
    and restart Proftpd?
     
  9. ebmar

    ebmar New Member

    Still access denied.
     
  10. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ?
     
  11. ebmar

    ebmar New Member

    netstat -tap


    Code:
    [email protected]:/var/log# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:mysql                 *:*                     LISTEN     15266/mysqld
    tcp        0      0 *:81                    *:*                     LISTEN     24150/ispconfig_htt
    tcp        0      0 webserver:domain        *:*                     LISTEN     24596/named
    tcp        0      0 webserver:domain        *:*                     LISTEN     24596/named
    tcp        0      0 *:smtp                  *:*                     LISTEN     27169/master
    tcp        0      0 webserver:953           *:*                     LISTEN     24596/named
    tcp6       0      0 *:imaps                 *:*                     LISTEN     3822/couriertcpd
    tcp6       0      0 *:pop3s                 *:*                     LISTEN     3857/couriertcpd
    tcp6       0      0 *:pop3                  *:*                     LISTEN     3837/couriertcpd
    tcp6       0      0 *:imap2                 *:*                     LISTEN     3802/couriertcpd
    tcp6       0      0 *:www                   *:*                     LISTEN     24461/apache2
    tcp6       0      0 *:ftp                   *:*                     LISTEN     9644/proftpd: (acce
    tcp6       0      0 *:ssh                   *:*                     LISTEN     16699/sshd
    tcp6       0      0 webserver:953           *:*                     LISTEN     24596/named
    tcp6       0      0 *:https                 *:*                     LISTEN     24461/apache2
    tcp6       0      0 webserver:www           heritrix4.nb.no:40531   TIME_WAIT  -
    tcp6       0      0 webserver:www           heritrix4.nb.no:40304   TIME_WAIT  -
    tcp6       0      0 webserver:www           heritrix4.nb.no:41231   TIME_WAIT  -
    tcp6       0      0 webserver:www           heritrix4.nb.no:40764   TIME_WAIT  -
    tcp6       0      0 webserver:www           heritrix4.nb.no:40996   TIME_WAIT  -
    tcp6       0      0 webserver:www           heritrix4.nb.no:41680   TIME_WAIT  -
    tcp6       0      0 webserver:www           heritrix4.nb.no:41454   TIME_WAIT  -
    tcp6       0      0 webserver:ftp           084202013180.custo:4980 ESTABLISHED14158/proftpd: web6
    tcp6       0    888 webserver:ssh           084202013180.custo:4958 ESTABLISHED14132/0
     
  12. falko

    falko Super Moderator ISPConfig Developer

    Can you add
    Code:
    UseIPv6 off
    to your proftpd.conf and restart ProFTPd?
     

Share This Page