Add additional FTP user Proftp

Hi,

 

You can add additional FTP user to your contents with default user permissions, so that if the additional user uploads contents to the server the files will be uploaded with default user’s permissions. All you need to do is to add a additional user and to add the following entries to your proftpd.conf file.

 

# vi /etc/proftpd.conf

<VirtualHost xx.xx.xx.xx>
  ServerName                    "server name"

  <Limit LOGIN>
   AllowAll
  </Limit>

  <Anonymous /path/to/your/documents>
    User                        defaultuser
    Group                       defaultuser
    UserAlias                   additionaluser defaultuser

    <Limit LOGIN>
      AllowAll
    </Limit>

    <Limit WRITE>
      AllowAll
    </Limit>

    <Directory incoming>
      <Limit WRITE>
        AllowAll
      </Limit>
    </Directory>
  </Anonymous>

then restart FTP service
#/etc/init.d/proftpd restart

 

Now, you will be able to connect to the server using FTP.

 

Thank you for viewing helpinlinux.com

Leave a Reply

Protected by WP Anti Spam