Set up an FTP server

BrightPoint GB

BrightPoint GB

Device Lifecycle Services.

Delivered.

Plan. Market. Customize. Move. Recycle.

More...
Samsung Galaxy S III

Samsung Galaxy S III

Designed For Humans

Inspired By Nature

This sleek and innovative smartphone has the enhanced intelligence to make everyday life easier.

More...
BlackBerry Curve 9320

BlackBerry Curve 9320

Socially Connected

3G capable

Featuring all of the core messaging and social features to keep you connected.

More...
HTC One X

HTC One X

Technology Leader

Quad Core Android 4.0

Perfect for gaming, watching videos and surfing the net

More...
HTC One V

HTC One V

Iconic Design

A great all-rounder

ImageSense technology, Beats Audio, wireless media streaming, cloud storage and more...

More...
ZTE Tania

ZTE Tania

Windows Phone Mango

Fully equipped

Great for business and pleasure

More...
BlackBerry Bold 9790

BlackBerry Bold 9790

BlackBerry OS7

Powerful & Fully Featured

Smooth performance for browsing the web, running apps, working with documents, and enjoying multimedia

More...
HTC Sensation XL

HTC Sensation XL

Feel every beat

With Beats Audio

A multimedia superstar with Beats earphones included.

More...
HTC Titan

HTC Titan

Unlike anything you've ever held before

Office on the move

Windows Phone 7.5 (Mango). With a 4.7-inch screen and big virtual keyboard, the Titan is perfect for both work and play.

More...
HTC Radar

HTC Radar

Real time close

Windows Phone 7.5 (Mango)

Pull all your contacts and social networks together into one place to stay connected with friends and share instantly.

More...
BlackBerry Bold 9900

BlackBerry Bold 9900

Slim yet powerful

Touch and Type in harmony

The Bold 9900 is RIM's thinnest BlackBerry smartphone yet and as lightweight and durable as it is feature-packed.

More...
ZTE Libra

ZTE Libra

Affordable Android

WiFi hotspot, Exchange email, Google Maps and much, much more all at an attractive price.

More...
ZTE MF30/MF60

ZTE MF30/MF60

Portable Internet

USB & WiFi for Windows and Mac

High speed, portable Internet access in your pocket.

More...
Motorola Defy +

Motorola Defy +

Lifeproof

Faster, smarter, richer

Scratch, dust and water-resistant. 1GHz processor, 5MP camera and great pre-loaded apps.

More...
BlackBerry Curve 9380

BlackBerry Curve 9380

BlackBerry OS7

The 1st all-touch Curve

Easily capture and share your favourite moments with family, friends and colleagues.

More...
Samsung Galaxy S2

Samsung Galaxy S2

Faster. Slimmer. Brighter.

Prepare yourself for the Galaxy S II, Samsung's thinnest smartphone.

More...
HTC Sensation XE

HTC Sensation XE

With Beats Audio

Designed to impress

With custom Beats headphones, engineered to deliver extraordinary sound.

More...
ZTE Skate

ZTE Skate

Affordable Android

WiFi hotspot, Exchange email, Google Maps and much, much more all at an attractive price.

More...
HTC Explorer

HTC Explorer

A design that fits your lifestyle

Keep in touch with the people who matter

Jump right into what's most important to you thanks to an improved lockscreen design.

More...
ZTE Tureis

ZTE Tureis

Full Qwerty 2.6-inch touchscreen

Android Gingerbread

Business and social features in a slim package.

More...
Frontpage Slideshow (standalone) | Copyright © 2006-2011 JoomlaWorks Ltd.

An FTP (File Transfer Protocol) server is a simple way of allowing users to exchange large files which are too big to send via email, and which can be accessed from virtually any web browser of FTP client. Multiple user accounts can be created on the same FTP server, and different permissions assigned to each user.

Install a base configuration of CentOS (http://www.centos.org), including the FTP and Web Server options. Strictly speaking the Web Server role is not required, but it is easier to add user accounts using Webmin than at the command line, which requires the web server role.

Once installed, start the web service using the following command:

service httpd start

Set the web service to launch automatically at startup:

chkconfig httpd on

Start the FTP server:

service vsftpd start

Set the FTP service to launch automatically at startup:

chkconfig vsftpd on

Download webmin from http://www.webmin.com/download.html

If you download the RPM installer package, issue the following command to install it:

rpm –i webmin-x.x.x.rpm

Create a directory on the server named ‘FTP’:

mkdir FTP

change to that directory:

cd FTP

create directories for logins as required:

mkdir Sales
mkdir Technical
mkdir Marketing

Log into webmin from a web browser:

http://(ftp_server):10000

Log in as root. Browse to System → Users and Groups
Create a new user account using the desired username
Set the Home Directory to the /FTP/xxx directory you created earlier
Assign a suitable password to the user account
Set the ‘Shell’ to /sbin/nologin
Set the Primary Group to ‘FTP'
Save the new user account

Repeat for the other user accounts as required (sales, marketing and technical in this example)

Return to the command prompt.
Set the ‘owner’ of the target FTP folders with the ‘chown’ command:

chown –R sales /FTP/Sales
chown –R marketing /FTP/Marketing
chown –R technical /FTP/Technical

(the –R switch makes the chown command apply to subdirectories of the parent)

Now edit the properties of the vsftpd.conf configuration file:

view /etc/vsftpd/vsftpd.conf

Make the following changes to the default configuration:

anonymous_enable=NO
local_enable=YES
write_enable=YES
anon_upload_enable=NO

Add a new line at the end of the file:

chroot_local_user=YES

Save the new file.

Restart the FTP service:

service vsftpd restart

At this point your FTP server is now available. Your router and/or firewall will need to be configured to allow FTP access to the machine (TCP port 21).

When connecting to the server you will be prompted for a username and password. Logging in as the ‘sales’ user will take you to the /FTP/Sales directory, logging in as the ‘marketing’ user will take you to the /FTP/Marketing directory and so on.

Should you want different logins to take you to the same folder, but with different permissions, then use the ‘chmod’ command on the folder.

For example, let’s say you need the same folder to be accessible to 2 users: ‘ftpreadaccess’ and ‘ftpwriteaccess’ with the corresponding permissions.

Create the required user accounts and set the home directory for both to the same folder.

Use the ‘chown’ command to set the owner of the folder to the ‘ftpwriteaccess’ user

Now use the chmod command to set the permissions:

chmod 755 folder

(where folder is the directory)

This will set the permissions of the folder to:

Owner – read, write and access
Group – read and access (in this case 'FTP' members)
Other – read and access

The easiest way to work out permissions is via your FTP client: connect as the owner user, or root, and edit the properties of the folder:

Setting Permissions

Your FTP site is now set up and ready to go.