Skip to main content

FTP server in Ubuntu desktop


How to install vsFTP in ubuntu desktop?

First# Install vsftpd

Type following commnad

$sudo apt-get install vsftpd

Second# Configure /etc/vsftpd.conf

You need to modified default /etc/vsftdp.conf file to access to the ftp server

$sudo vim /etc/vsftpd.conf

Make sure following lines should be uncomment
listen=yes
local_enables=yes
write_enables=yes
dirmessage_enable=yes
use_locatime=yes
xfrelog_enable=yes
connect_from_port_20=yes
ftpd_banner=Welcome to Jay FTP server
chroot_local_user=yes
chroot_list_enable=yes
chroot_list_file=/etc/vsftpd.chroot_list



Third#Now make a file name vsftpd.chroot_list 
(Otherwise you may encounter following  error,
500 OOPS: could not read chroot() list file:/etc/vsftpd.chroot_list)

$ sudo vi /etc/vsftpd.chroot_list
(add a user on this file)
e.g jay
(

Fourth# Restart vsftpd
$sudo /etc/init.d/vsftpd.restart


To check your ftp server is working or not just use this command
$ftp localhost

If all setting is fine then your ftp sever is ask for username and password.

This is simple step to create ftp server, for more secure and advance service just use google.

Comments

  1. I just did everything exactly that you stated above. I created a user, added it to the chroot list and tried to login via CuteFTP from outside our network to the FTP server's NAT'd address. I keep receiving the error "Login incorrect". The login info is correct. Is there anything else that we need to do? Please help!

    ReplyDelete
  2. It's difficult me to understand your topology,can you explain issue in detail. However for NAT'd address, you must port forward in your NAT'd router.

    ReplyDelete

Post a Comment

Popular posts from this blog

Unable to open kernel device . global vmx86 windows 7

Suddenly I encounter a weird problem with VMware 9 version. I install different OS for my education and testing purposed. Like MAC os, Ubuntu, CentOS, BT, WinXP, Win-server 2003. When I tried to run one of this OS a error message appear. unable to open kernel device "\\.Global\vmx86": The system cannot find the file specified. Did you reboot after installing VMware Workstation? Failed to initialize monitor device. Click ok you can see this window After googling I found one solution in developer forum but thread starter never use that method. So I tried it and here is my finding. Go to the directory of vmware installed  (In my case I run it as Administrator) C:\Program Files (x86)\VMware\VMware Workstation>   ( I've 32-bit apps on 64-bit OS, your may be different) Run this command vnetlib -- uninstall vmx86  reboot Go to the same directory and check net start command - this time it should say "service name  is invalid&quo

Simple Failover Mikrotik

Simple fail-over Mikrotik router configuration. Most of the user wants backup link (Fiber link with Wireless backup), in case fiber down wireless link auto up. No downtime for the user. Here is simple setting on Mikrotik for fail-over. I'm very great full to Anton to point out the mistake in src-address. It has been corrected now. ****default routes for new outgoing traffic.**** /ip route add dst-address=0.0.0.0/0 gateway=ISP-GW-ADDR-1 distance=1 check-gateway=ping add dst-address=0.0.0.0/0 gateway=ISP-GW-ADDR-2 distance=2 ++masquerade both WAN connections++ /ip firewall nat add chain=srcnat src-address=192.168.0.0/24 out-interface=WAN-1 action=masquerade add chain=srcnat src-address=192.168.0.0/24 out-interface=WAN-2 action=masquerade Thats it.

Mikrotik SXT 5nD r2 setup in bridge mode

How to connect two Mikrotik RouterBoard SXT 5nD r2 devices together in Bridge Mode Upgrading you SXT's to the Latest version of RouterOS Doing a Bandwidth Test between two RouterBoard SXT-5nD's Mikrotik routerboard default IP is 192.168.88.1 You can connect with routerboard by WinBox through IP and MAC address. You need to download WinBox from mikrotik website. By default routerboard have Admin as username and blank password. If you want to connect with device through IP then don't forget to add same network address into your pc NIC, otherwise connection isn't established. Else you can connect through MAC so choose MAC address from Elipsis next to " connect " field. When you login, "RouterOS Default configuration" screen is popup. click okay. Do same for other device to login to routerOS If you followed the process then you already open both device. Now you can set a HostName for those devices. Click on the system button o