Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-17-2012, 10:53 PM   #1
Registered: Jul 2011
Posts: 322

Rep: Reputation: Disabled
how to create a new user for ftp upload in a web server using vsftpd centos

I have a web server which does virtual web hosting and for each virtual host, each virtual user has been created which has access only to its respective home directory and can upload via ftp.

Now i want to create a new user(not for a new website) which can have access only to its home directory when it does ftp upload and download. So is it possible to do that because the new user is not for a new website and in httpd configuration what should i give in the "ServerName"?

Or is it ok if i give the domain name of the web server hosting those? will it not conflict?

EXAMPLE: <VirtualHost *:80>
DocumentRoot /var/www/html/sarah
ErrorLog logs/
CustomLog logs/ common

where is the domain of the webserver and sarah is the new user.
Old 06-18-2012, 09:55 AM   #2
Registered: Jun 2012
Location: Canada
Distribution: Ubuntu/Debian/CentOS
Posts: 45

Rep: Reputation: 19
Any domain name that is pointing to the server should work. If the login is not associated with any website, you could just use the external IP as well. It shouldn't be a conflict, because it will just see that "sarah" is logging into ftp, and give her access to /var/www/html/sarah.

Please correct me if I am wrong.
Old 06-18-2012, 02:39 PM   #3
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Why are you using apache to give someone ftp access ?
Just create a user with ftp access, no apache config needed.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create FTP server (vsftpd) thetotzky04 Linux - Newbie 2 04-30-2009 11:02 AM
'553 Could not create file' in vsftpd FTP Server on CentOS 5 Fabian10 Linux - Server 2 11-26-2007 11:13 AM
How to create a ftp user on VSFTPD in linux rahiljavaid Linux - Newbie 2 11-08-2006 11:42 AM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 06:32 AM
Web form to upload to FTP server phatboyz Linux - Networking 2 05-18-2005 10:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration