Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



Change the default directory vsftp / home / ftp

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-12-2009
Member
 
Join Date: Nov 2009
Posts: 520
Change the default directory vsftp / home / ftp

Hello
Please I want to know how to change the default directory of FTP server: / home / ftp, I want to make this the default apache2: / var / www. otherwise how to link the two directories. Thank you in advance.
Reply With Quote
  #2  
Old 17-12-2009
Solomon's Avatar
Member
 
Join Date: May 2008
Posts: 4,056
Re: Change the default directory vsftp / home / ftp

Hello,
The symbolic link is a solution but it should be easier.
Do you know the following
Code:
/ etc / vsftpd.conf?
You must have a configuration file for vsftpd somewhere where you will define the default directory. On what OS are you?
Reply With Quote
  #3  
Old 17-12-2009
Member
 
Join Date: Nov 2009
Posts: 520
Re: Change the default directory vsftp / home / ftp

Hi
Hello and thank you for answers. The solution to the symbolic link works fine: ln-s / var / www / / home / ftp /.
For the configuration file of vsftpd yes I saw in / etc / vsftpd.conf, but I did not find the default directory. If there is another solution I'd like to know how. Again, thank you.
Reply With Quote
  #4  
Old 17-12-2009
jesse's Avatar
Member
 
Join Date: Nov 2005
Posts: 2,965
Re: Change the default directory vsftp / home / ftp

Hi
A symbolic link is the cleanest solution I found. vsftpd uses / home / ftp because it is the directory where it is ch rooted, being launched under Human ftp user. Otherwise, change the home directory of the ftp user. It happens in / etc / passwd that. Try this and see if this works with you. If not then do post back the query you have.
Reply With Quote
  #5  
Old 17-12-2009
Dr. V
 
Posts: n/a
Re: Change the default directory vsftp / home / ftp

Hi
Code:
The solution to the symbolic link works fine: ln-s / var / www / / home / ftp /.
For the configuration file of vsftpd yes I saw in / etc / vsftpd.conf
Indeed, if there is no option in / etc / vsftpd.conf, change the directory of the ftp user is like taking a hammer to kill a fly.
Reply With Quote
  #6  
Old 17-12-2009
jesse's Avatar
Member
 
Join Date: Nov 2005
Posts: 2,965
Re: Change the default directory vsftp / home / ftp

Hi
I really recommend the symbolic (or hard), because it has another advantage: you can easily add resources from other files. Example, you want to add a record of his personal home, we need only add a link in / home / ftp pointing to this folder. Otherwise, the same kind of solution can be used
Code:
mount-o bind / folder / home / ftp
This is what I do things to work round.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Change the default directory vsftp / home / ftp"
Thread Thread Starter Forum Replies Last Post
How to change the default installation directory in the windows 7 PuppETR Operating Systems 3 22-12-2010 12:13 PM
How do I change default Home path in Windows Vista Actionguy Operating Systems 3 19-02-2009 06:01 PM
change IE7 default home page and Language MaST MaX Vista Setup and Install 0 11-12-2008 03:03 PM
How to change Windows Explorer's default directory? baobob@my-deja.com Window 2000 Help 6 07-03-2008 02:36 AM
move existing videos and change default directory in Media Center 2005 Jesse Tutterrow MediaCenter 4 10-05-2007 12:45 AM


All times are GMT +5.5. The time now is 02:29 AM.