Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quick Question.... 1

Status
Not open for further replies.

webmastadj84

IS-IT--Management
Aug 23, 2006
86
US
I have my apache server up and running. Now I need a FTP server. Something easy to set-up. I have tried vsftpd and proftpd, both seem to be a little difficult to set-up. Is there anything else out there that allows me to set-up users routed to their specific web site directory?
 
<soapbox>
If you don't take the time to learn your services, secure them properly, and manage them actively, then you are almost certainly setting yourself up for time (and perhaps money) lost in the future when your users or total strangers mess up your system and abuse it against your intent.
</soapbox>





D.E.R. Management - IT Project Management Consulting
 
If you want to allow ftp access for your users, you may have to back up just a little. here is the general setup. First a linux user account is created. This gives each user username/password access to the system. Now each of your servers can be configured to allow access by each user to their "Home" directory. Apache needs to be configured to use the "UserDir" directive. The default path is /home/username/public_html because /home is where the default system users home directories are. However, you can make it anything you want. Now, all you have to do is configure your ftp server to chroot (jail) users to their home directories. This is usually just a matter of adding one simple directive or uncommenting a line as in the case of proftpd. This will keep them from viewing every directory on your system. Unless you have a real good reason, I would not allow anonymous ftp access. Nor would I allow telnet/ssh. With this setup, you don't have to configure each server for every user. Another nice thing is your users have access to their website as soon as you create their account. This lets them setup their website while waiting for dns to do its thing. They will automatically be taken to their webspace when they use ftp. and to access their website they would just type They will use their domain name once dns is pointing to your server. I also want to add that thedaver is correct. You should do all you can to learn how to secure your server.
 
Also, ftp is different for unix/line than that of windoze. There is no ftp root. Wherever your user's directory is located, that will be where they log in to.

FTP is not quite as secure as encrypted protocols, however, you could encapsulate ftp into an ssl tunnel (ftps). That's a little better.

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top