Error: chmod failed

Discussion in 'Installation/Configuration' started by whitetr6, Oct 6, 2007.

  1. whitetr6

    whitetr6 New Member

    New ispconfig installation, my first time using it. Used the Howtoforge article on setting up Centos 5, and then installed ispconfig. That all went well. Now trying to set up a test site. I created a client, and then a user, and made that user an "admin". Then I created a site, and went to Web-FTP page, where I logged in as the user I created. Then I tried to upload a file (using the Web-FTP interface, not a separate ftp client), uploading to the web folder in the tree of my test site. I receive an error "chmod failed"

    Searching the archives, all I can find is a suggestion that proftpd.conf needs to be changed to allow ftp client chmod, but I can't find anywhere how to do that.

    Here is the content of my proftpd_ispconfig.conf:
    Code:
    ###################################
    #
    # ISPConfig proftpd Configuration File
    #         Version 1.0
    #
    ###################################
    DefaultAddress 127.0.0.1
    <VirtualHost 192.168.254.19>
            DefaultRoot             ~
            AllowOverwrite          on
            Umask                   002
    </VirtualHost>
    
    And here is the proftpd.conf:
    Code:
    # This is a basic ProFTPD configuration file (rename it to
    # 'proftpd.conf' for actual use.  It establishes a single server
    # and a single anonymous login.  It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.
    
    ServerName                      "ProFTPD Default Installation"
    ServerType                      standalone
    DefaultServer                   on
    IdentLookups off
    ServerIdent on "FTP Server Ready."
    
    # Port 21 is the standard FTP port.
    Port                            21
    
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask                           022
    
    # 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 under which the server will run.
    User                            nobody
    Group                           nobody
    
    # To cause every FTP user to be "jailed" (chrooted) into their home
    # directory, uncomment this line.
    DefaultRoot ~
    
    # Normally, we want files to be overwriteable.
    AllowOverwrite          on
    
    # Bar use of SITE CHMOD by default
    <Limit SITE_CHMOD>
      DenyAll
    </Limit>
    
    # A basic anonymous configuration, no upload directories.  If you do not
    # want anonymous users, simply delete this entire <Anonymous> section.
    <Anonymous ~ftp>
      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                    10
    
      # We want 'welcome.msg' displayed at login, and '.message' displayed
      # in each newly chdired directory.
      DisplayLogin                  welcome.msg
      DisplayChdir                  .message
    
      # Limit WRITE everywhere in the anonymous chroot
      <Limit WRITE>
        DenyAll
      </Limit>
    </Anonymous>
    
    
    Include /etc/proftpd_ispconfig.conf
    
    
    I appreciate any help you can provide. Thanks!
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Please change
    Code:
    # Bar use of SITE CHMOD by default
    <Limit SITE_CHMOD>
      DenyAll
    </Limit>
    to
    Code:
    # Bar use of SITE CHMOD by default
    #<Limit SITE_CHMOD>
    #  DenyAll
    #</Limit>
    and restart Proftpd.
     
  3. whitetr6

    whitetr6 New Member

    Error: chmod failed [solved]

    Simple solution - the best kind. Thanks falko!!
     

Share This Page