More Info:
You also might check out:
http://vsftpd.beasts.org/ (notice the bit about Proftpd)
http://bsdftpd-ssl.sc.ru/
and this might interest you too:
http://www.glub.com/produc
Main Topics
Browse All TopicsHi,
Ive got an apache web server setup on fedora core 1. I've got a static IP with my ISP, and are hosting multiple businesses websites on my fedora box using virtual server directives so that url requests display the correct page.
I wish to setup an ftp server (I've been told to use Proftpd - correct me if another server should be used :) ) so that each business can ftp into their own html directory on the webserver so they can update their sites. I have setup the directory structure on the wevbserver such that the html folder has subfolders that contain the businesses sites.
I have very limited experience with linux so please be descriptive with your answer :) I am willing to offer more points if I am asking for a very lenghty or difficult answer.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
More Info:
You also might check out:
http://vsftpd.beasts.org/ (notice the bit about Proftpd)
http://bsdftpd-ssl.sc.ru/
and this might interest you too:
http://www.glub.com/produc
Download this:
ftp://vsftpd.beasts.org/us
Step by step instructions:
http://www.fbunet.de/vsftp
-or-
ftp://vsftpd.beasts.org/us
In /etc/vsftpd.conf, you'll find the line:
# Allow anonymous FTP?
anonymous_enable=NO
*Be sure it does say NO!*
Check this out too:
ftp://vsftpd.beasts.org/us
Does that help?
TNC
Hi,
I had a read the faq's and install instructions, but I cannot find anywhere to set up folders that a given user can access when they log in. Ie have a user put their username and password and restrict their access to their own html folder.
I assume that I have to setup a user for each site, make their home directory the html folder for their site and use the
"chroot_local_user=YES"
directive in the vsftpd.conf file.
Will this restrict them from accessing other folders on the system??
Please excuse my ignorance, I am very new to linux and this has been a steep learning curve :)
Cheers
Travis
Ah. You want to create users for these accounts and direct their home directories to their home directories (I know that makes no sense).
Read: http://www.linuxheadquarte
if you have a user that has webpage www.experts-exchange.com and that user ID is eedotcom and that webpage is hosted from ./htdocs/ee/ then you want to use:
/usr/sbin/adduser -d ./htdocs/ee/ -p eepass
if you want multiple users to access this public html directory, then add a group and add users to the group.
Read this: http://www.linuxheadquarte
Ok, I've installed vsftpd, left the vsftpd.conf file as is except for uncommenting the lines
anonymous_enable=NO
local_enable=YES
write_enable=YES
Ive configured xinetd to run when ftp requests are made
ive setup a number of accounts, 1 for each business that im hosting with their home directories set to the directory that stores their web site.
When I attempt to connect to the ftp server using cuteftp on another machine on the network, i get the following error
STATUS:> Connect: Sunday 17:12:26 01-18-2004
STATUS:> Connecting to 192.168.1.50
STATUS:> Connecting to 192.168.1.50 (ip = 192.168.1.50)
STATUS:> Socket connected. Waiting for welcome message...
500 OOPS: vsftpd: security: 'one_process_model' is anonymous only
ERROR:> Unknown response code: 500
ERROR:> Can't log in. Disconnecting...
STATUS:> Disconnect: Sunday 17:12:26 01-18-2004
Is there a configuration directive that I can change for that?
Is this configuration going to prevent a given buiness from accessing other directories on the system other than their own web folder and subfolders?
Cheers
Travis
Ok, i think im nearly there :)
Ive got it attempting to login now without throwing errors, but now it doesnt accept any of the user/password combinations, i've even tried root/*password*
Below is my vsftpd.conf file:
# Access rights
anonymous_enable=NO
local_enable=YES
write_enable=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
# Security
anon_world_readable_only=Y
connect_from_port_20=YES
hide_ids=YES
pasv_min_port=50000
pasv_max_port=60000
# Features
xferlog_enable=YES
ls_recurse_enable=NO
ascii_download_enable=NO
async_abor_enable=YES
chroot_local_user=YES
# Performance
one_process_model=NO
idle_session_timeout=120
data_connection_timeout=30
accept_timeout=60
connect_timeout=60
anon_max_rate=50000
Cheers
Travis
STATUS:> Connect: Monday 19:05:57 01-19-2004
STATUS:> Connecting to 192.168.1.50
STATUS:> Connecting to 192.168.1.50 (ip = 192.168.1.50)
STATUS:> Socket connected. Waiting for welcome message...
220 (vsFTPd 1.2.1)
STATUS:> Connected. Authenticating...
COMMAND:> USER root
331 Please specify the password.
COMMAND:> PASS **********
530 Login incorrect.
ERROR:> Can't log in. Still trying...
It then pops up a dialog box to retype the username and password
Try this:
Following these directions (http://www.siliconvalleyc
You might need to add "vsftpd: ALL" in the /etc/hosts.allow file.
Let me know,
TNC
The link posted above appears to be broken??
Ive tried adding "vsftpd:ALL" and creating a file called vsftpd.chroot_list that contains all the usernames that I want to be able to log into the server
Still dont work :(
Is the server trying to authenticate using PAM (i have no idea what that means - but ive read it in vsftpd install guides) I dont think i need to use PAM, because im not using virtual users - all the users that im trying to log in as exist on the system.
I tried loggin in using the command "ftp localhost" and that rejects the username/password combinations im giving it to :(
I had a look into this PAM thingy, and if i run ldd vsftpd, it tells me that the PAM is linked with vsftpd.
following the FAQ "ftp://vsftpd.beasts.org/u
What else do i have to do to get the users to authenticate properly??
Yeah, the ftp client is being run when the machine receives data to port 21, cos when I type ftp localhost on the console i get:
220 (vsFTPd 1.2.1)
Name (localhost:root):
and when i try to cuteftp in from another machine i get:
STATUS:> Connect: Monday 19:05:57 01-19-2004
STATUS:> Connecting to 192.168.1.50
STATUS:> Connecting to 192.168.1.50 (ip = 192.168.1.50)
STATUS:> Socket connected. Waiting for welcome message...
220 (vsFTPd 1.2.1)
STATUS:> Connected. Authenticating...
COMMAND:> USER root
331 Please specify the password.
COMMAND:> PASS **********
530 Login incorrect.
ERROR:> Can't log in. Still trying...
So the process is being run, It must be an authentication problem. I think that this PAM thing is the problem, cos according to the FAQ, PAM is being used. Ugghh
I turned the anonymous_enable=NO to anonymous_enable=YES
and tried to log in at the command prompt
Now i get
[root@webserver root]# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 1.2.1)
Name (localhost:root): ftp
331 Please specify the password.
Password:
500 OOPS: cannot change directory:/var/ftp
Login failed.
421 Service not available, remote server has closed connection
the same happens when i use the username anonymous
Hi,
i didnt make the dir ftp - so i put it in, now it works for anon users ie:
[root@webserver ftp]# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 1.2.1)
Name (localhost:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,231,166)
150 Here comes the directory listing.
-rw-r--r-- 1 ftp ftp 0 Jan 23 06:49 testfile.txt
226 Directory send OK.
ftp>
But the other users do not work still:
[root@webserver ftp]# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 1.2.1)
Name (localhost:root): root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
The other users wont work if it's in anon.
Now that you know it works, try disabling anon and enabling local.
Remember, you cannot log in as root.
Try another user and post the results.
TNC
P.S., make sure the ftp user and group exist and that the users you log in with have home directories specified and that those directories exist.
Ok, I had a mate around today that is pretty unix savvy, the problem was that the file ftp in the pam.d directory I had named vsftpd by mistake :|
Ive disabled the anon ftp access and it all works good - users cant cd .. out of thier own directory, just the way i wanted it.
Thanks heaps for the help tho :)
Business Accounts
Answer for Membership
by: tncbbthositgPosted on 2004-01-15 at 11:49:37ID: 10123300
I wouldnt use either. FTP is not secure.
I'd use SSH at www.ssh.com
TNC