General discussion

  • Creator
    Topic
  • #2072822

    Anonymous FTP Administration

    Locked

    by ratherbfishing ·

    After setting up Anonymous FTP on my Caldera box, I discovered that not only can anonymous users not upload files (this is good!) but that I did not have a way to do it either!

    How do I set up a user who has permission to upload files to the /home/ftp/pub directory?

    Right now I am getting around it by taking root off of the /etc/ftpuser list and loggng in aas root when I need to upload files. But there must be another way.

All Comments

  • Author
    Replies
    • #3782592

      Anonymous FTP Administration

      by michael ·

      In reply to Anonymous FTP Administration

      You need to edit your /etc/ftpaccess file to set up a user with upload priveleges. I would check your ftp man page for the proper way to do this with your ftp server.

      Hope this helps

      • #3765688

        Anonymous FTP Administration

        by ratherbfishing ·

        In reply to Anonymous FTP Administration

        The man page is incredibly arcane about this. I have tried without success so far. But thanks for replying!

    • #3765709

      Anonymous FTP Administration

      by donclick ·

      In reply to Anonymous FTP Administration

      There are a couple of options here. The first, and a good one – is to replace the wu-ftpd with something like glftpd (www.glftpd.net). This has a config file that is totatlly customizable, and very versitile.

      Now, if you want to use the exiting deamon, then you need to make sure that your passwd file is setup correctly.

      Creating an anonymous ftp is easy, adding upload capabilities isnt that hard. Lets see if we can get that fixed..

      You can use groups, and make sure that the users that you want to upload are all in the same group, and then assign your upload dirs that group as owner.

      Also, check your ftphosts file – make sure that users are that are allowed are listed, or denied, as your needs demand.

      You could also just addthe following to /etc/ftpaccess:

      upload /home/ftp /incoming yes root ftp 0600

      then do a
      chown -R root.ftp ~ftp/incoming
      chmod -R 1733 ~ftp/incoming

      (assuming that /home/ftp is where your root ftp is.. if not, change it appropriatly.)hope this helps.

    • #3765708

      Anonymous FTP Administration

      by donclick ·

      In reply to Anonymous FTP Administration

      There are a couple of options here. The first, and a good one – is to replace the wu-ftpd with something like glftpd (www.glftpd.net). This has a config file that is totatlly customizable, and very versitile.

      Now, if you want to use the exiting deamon, then you need to make sure that your passwd file is setup correctly.

      Creating an anonymous ftp is easy, adding upload capabilities isnt that hard. Lets see if we can get that fixed..

      You can use groups, and make sure that the users that you want to upload are all in the same group, and then assign your upload dirs that group as owner.

      Also, check your ftphosts file – make sure that users are that are allowed are listed, or denied, as your needs demand.

      You could also just addthe following to /etc/ftpaccess:

      upload /home/ftp /incoming yes root ftp 0600

      then do a
      chown -R root.ftp ~ftp/incoming
      chmod -R 1733 ~ftp/incoming

      (assuming that /home/ftp is where your root ftp is.. if not, change it appropriatly.)hope this helps.

Viewing 2 reply threads