VSFTP Configuration on Ubuntu

After got bored a little in development, just I jumped into administration. Currently I am running Ubuntu as the guest operating system in my Windows 7 using VMWare Player.
If the guest operating system is windows, then you can easily share the file systems of host OS with the guest OS by enabling the sharing of drives in VMWare Settings. In my case its not possible. because my guest OS is Ubuntu.
So I was thinking, what could be the solutions to solve this, then I found these,
1) Samba – Sharing Files,Devices between Linux and Windows
2) SCP - Sharing files and folders between any kind of operating systems.
3) FTP - Sharing files in the LAN,WAN
4) WinSCP – A windows software that will allow you to share the files between any machines (Quit simple to use)
*****FTP*****
When I try to implement FTP then I found there are many types of FTP Configurations. for secure copy I choose VSFTP(Very Secure File Transfer Protocol).

Using VSFTP We can share files for anonymous users/authenticated users.

1.Anonymous User Sharing
2.Authendicated User Sharing


1. Install FTP Server in your Ubuntu machine
Connect to the internet, then try

#sudo apt-get install vsftpd

check for the status of ftp server
# netstat -a | grep ftp

2. Editing the configuration of the FTP Server.

Location of the Conf file : /etc/vsftpd.conf

That file is almost self understandable.just see the comments and Modify, and comment the lines which you dont want in this file (At starting of the line put #)

Enabling anonymous sharing :

anonymous_enable=YES /* Enabling the Anonymous access */
anon_root=/var/ftp /* The directory to be shared*/

Go through the file for further configurations. like writable = YES , anon_upload_enable=YES , etc..

Once you made the changes restart the server

# service vsftpd restart

Create and assign access to the directory which you mentioned in configuration file:

Create Share dir :
# mkdir -p /var/ftp/[sharedfoler] /*It will create the directory under ftp. If parent directories are not exist then it will create parent directories also */

Set the access role :
# chmod 777 -R /var/ftp/[sharedfolder] /*Assign the access to user,owner,group Read Write Excecute */

3. Connect ftp in any client machine :

ftp://[IP_ADDRESS of the ftp server]

[Anonymous sharing : It wont ask for the credentials]
[Authendicated Sharing : It will prompt for the credentials, once you logged in then you can share all files and directories for that user]

Enjoy Sharing!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.