nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Apache Create FTP File Uploading Account

This is a discussion on Apache Create FTP File Uploading Account within the Web servers forums, part of the Mastering Servers category; i install in a Redhat enterprise 3 es webserver(Apache)and i want to give access with ftp to a user for ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2009, 07:32 PM
Junior Member
User
 
Join Date: Jul 2009
OS: Redhat
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fadu is on a distinguished road
Default Apache Create FTP File Uploading Account

i install in a Redhat enterprise 3 es webserver(Apache)and i want to give access with ftp to a user for uploading,deleting privilage to /var/www/html/ directory only.plz tell me the prosedure.

Last edited by fadu; 03-07-2009 at 07:46 PM.
Reply With Quote
  #2 (permalink)  
Old 04-07-2009, 12:33 AM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Scripting language: BASH - Learning Ruby
Posts: 604
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
  #3 (permalink)  
Old 04-07-2009, 11:30 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 246 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

If you are using CentOS / RHEL try:
Red Hat / CentOS VSFTPD FTP Server Configuration
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply

Tags
webpage uploading problem with ftp


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Create new user account in Ubuntu Linux from command line sweta Getting started tutorials 3 07-02-2010 12:15 PM
Can't create dir/file... JATA01 CentOS / RHEL / Fedora 1 11-01-2009 03:39 AM
How to create multiple user account? droidwork Shell scripting 11 23-02-2008 01:35 PM
Linux create self signed ssl certificate for Apache httpd server raj Getting started tutorials 0 05-05-2007 01:23 AM
how to create multiple file in a single command selvam Shell scripting 3 26-07-2006 01:01 AM


All times are GMT +5.5. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38