Discussion Locked

Anonymous FTP Administration

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

6 replies

by michael

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

by ratherbfishing

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

by donclick

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.

by donclick

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.

This discussion is closed to new replies.