http://www.wikihow.com/Set-up-an-FTP...n-Ubuntu-Linux
I followed the directions there but it doesn't work, I cannot even FTP localhost on here, let alone from the internet!
Printable View
http://www.wikihow.com/Set-up-an-FTP...n-Ubuntu-Linux
I followed the directions there but it doesn't work, I cannot even FTP localhost on here, let alone from the internet!
I got something, maybe I can't FTP from localhost (dunno why, that's the best way to test it)Quote:
mpg@MIKED6:~$ ftp localhost
Connected to localhost.
500 OOPS: vsftpd: both local and anonymous access disabled!
ftp>
its to do with your vsftpd settings.. you could try gproftpd, easy to setup.. its an ftp server.. it has a GUI
How can I change the folder that is the root for the FTP server I do not want "/" as the FTP folder, I want "/home/mpg/Desktop/Incoming/FTP"
EDIT: WTF if I ftp "localhost" or "Miked6" from my machine (mike6 is my hostname) I get the root folder (/), but if I ftp miked6 from another machine on my network I get my home folder.
I cannot FTP into my Machine from the internet, I have ports 20 and 21 forwarded on my router, this is what I get when I ping my home IP from outside my network.Quote:
C:\Users\Mike>ping My Home IP
Pinging My Home IP with 32 bytes of data:
Reply from My Home IP: bytes=32 time=76ms TTL=252
Reply from My Home IP: bytes=32 time=206ms TTL=252
Reply from My Home IP: bytes=32 time=372ms TTL=252
Reply from My Home IP: bytes=32 time=166ms TTL=252
Ping statistics for My Home IP:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 76ms, Maximum = 372ms, Average = 205ms
ok this is my first reply on this place :)
i am sitting down with vsftpd myself and what i found out is this tutorial
http://linuxforfun.net/2008/04/05/vsftpd-virtual-users/
i am not 100% SURE about the configuration file /etc/vsftpd/vsftpd-virtual.conf.
there is allot of different configs on this one on the net :) fun right.
This is a new started wiki
http://viki.brainsware.org/?en/Virtual_Hosts_Users
in this part of the vsftpd-virtual.conf file you can redirect were ever
you want in your computer (important this is my understanding i might be wrong.)
__________________________________________________ ______
# in conjunction with 'local_root',
# specifies a home directory for each virtual user
user_sub_token=$USER
local_root=/var/www/virtual/$USER
===================================
change the above line to local_root=/home/user/Desktop/where/u/want/
===================================
__________________________________________________ _______
my problem were to create the db-file (DataBase-file) with he line
# sudo db_load -T -t hash -f virtual-users.txt /etc/vsftpd/virtual-users.db
i found the problem to hardy simular to most distro i think :)
solution:
sudo apt-get install db4.6-util
sudo db4.6_load -T -t hash -f logins.txt /etc/vsftpd_login.db
The db_load should be db4.6_load (the db_load version).
but am not don with my problems i cant change owner to ftp:ftp by command sudo chown ftp:ftp /My/FTP/FOLDER/.
best of luck.
This should work. Is did fore me. i am up and running the server with 3 virtual users and more are coming :)
================================================== ========================
Setup of VSFTPD virtual users
If you are hosting several web sites, for security reason, you may want the webmasters to access their own files only. One of the good way is to give them FTP access by setup of VSFTPD virtual users and directories. This article describes how you can do that easily.
(See also: Setup of VSFTPD virtual users - another approach)
1. Installation of VSFTPD
# sudo apt-get install vsftpd
2. Virtual users and authentication
We are going to use pam_userdb to authenticate the virtual users. This needs a username / password file in `db’ format - a common database format. We need `db_load’ program.
# sudo apt-get install db4.6-util | vid skrivande stund.
To create a `db’ format file, first create a plain text file `virtual-users.txt’ with the usernames and passwords on alternating lines:
mary
123456
jack
654321
Then execute the following command to create the actual database:
# sudo db4.6_load -T -t hash -f virtual-users.txt /etc/vsftpd/virtual-users.db
Now, create a PAM file /etc/pam.d/vsftpd-virtual which uses your database:
auth required pam_userdb.so db=/etc/vsftpd/virtual-users
account required pam_userdb.so db=/etc/vsftpd/virtual-users
3. Configuration of VSFTPD
Create a configuration file /etc/vsftpd/vsftpd-virtual.conf,
# disables anonymous FTP
anonymous_enable=NO
# enables non-anonymous FTP
local_enable=YES
# activates virtual users
guest_enable=YES
# virtual users to use local privs, not anon privs
virtual_use_local_privs=YES
# enables uploads and new directories
write_enable=YES
# the PAM file used by authentication of virtual uses
pam_service_name=vsftpd-virtual
# in conjunction with 'local_root',
# specifies a home directory for each virtual user
user_sub_token=$USER
local_root=/home/ftp/$USER
# the virtual user is restricted to the virtual FTP area
chroot_local_user=YES
# hides the FTP server user IDs and just display "ftp" in directory listings
hide_ids=YES
# runs vsftpd in standalone mode
listen=YES
# listens on this port for incoming FTP connections
listen_port=60021
# the minimum port to allocate for PASV style data connections
pasv_min_port=62222
# the maximum port to allocate for PASV style data connections
pasv_max_port=63333
# controls whether PORT style data connections use port 20 (ftp-data)
connect_from_port_20=YES
# the umask for file creation
local_umask=022
4. Make userfolder red/write/delite able.
# cd /home/ftp
# sudo mkdir mary
# sudo chmod 777 mary/
5. Restart the FTP by command.
# sudo /etc/init.d/vsftpd restart
6. login localy to your FTP server by:
# ftp localhost
or
# ftp 192.168.1.100 (your ip on the network)
================================================== ========================
Best of luck.
EDIT:
add some personal touch to login :) OPTIONAL
in /etc/vsftpd/vsftpd-virtual.conf
im using kde (kubuntu) an add a new line to:
# kdesudo kate /etc/vsftpd/vsftpd-virtual.conf
ftpd_banner=WELCOME TO ---===_MUSHROOMŚ_===--- FTP.
The welcome text will show on login :)
I am using gproftpd but I can't find the GUI.
I can connect from localhost or XP, I tried connecting from my Windows Mobile PDA phone (from withing my network using Wifi, and outside over 3G internet) without sucess :(
Take a look on this page.
http://www.howtoforge.com/proftpd_we...face_gui_tools
* Administrator
* Management
that i think will fit your diskription.