View Single Post
  #2 (permalink)  
Old 04-07-2009, 12:33 AM
jaysunn's Avatar
jaysunn jaysunn is offline
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 602
Thanks: 61
Thanked 80 Times in 72 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
Default

You will need to install vsftpd as a ftp server for you server. You can install this as a rpm by obtaining the rpm. This is a example. There are newer releases of vsftpd.

Type this:

Code:
Prompt#wget http://www.vsftpdrocks.org/vsftpd-1.1.3-8.i386.rpm
Once you have the rpm you will need to install it.

Type this:

Code:
Prompt#rpm -ivh vsftpd-1.1.3-8.i386.rpm
If you plan to use the basic default configuration you can start the daemon:

Type this:

Code:
/etc/init.d/vsftpd start
Now create your user and set his home directory as his landing point.

Type this:

Code:
Prompt#useradd username -d /var/www/html/
Next set the password.

Type this:

Code:
Prompt#passwd username
Enter a password and attempt to login via ftp. You will have to set the directory permission to allow changes from that user:

Type this:

Code:
Prompt#chown  username:username /var/www/html
Now test.

This is just a basic setup of the vsftpd daemon. Please see the vstpd forums for more help.

Jaysunn
Reply With Quote