Solved

Change the default directory for VSFTPD

Posted on 2007-12-04
4
16,952 Views
Last Modified: 2013-12-02
How do you go about change the default directory for vsftpd. The default is /var/ftp/pub and I would like to something like /storage/pub. I know I can change the users home directory of the uses but I don't went to do that because I went it to happen with at a username or a password.

Thank you for the help.
0
Comment
Question by:thomasbonham
  • 2
4 Comments
 
LVL 3

Assisted Solution

by:ckhsu1977
ckhsu1977 earned 166 total points
Comment Utility
0
 
LVL 13

Accepted Solution

by:
WizRd-Linux earned 334 total points
Comment Utility
edit /etc/vsftpd/vsftpd.conf and replace or add the following line

local_root /storage/ftp

If you are allowing anonymous logins, the user that it emulates needs /storage/ftp as its home directory.

It would also be a good idea to consider the use of a chroot jail.
0
 

Author Comment

by:thomasbonham
Comment Utility
Okay I did try that and it works when you login with a user account but it stuff puts you in /var/ftp/pub when you login anonymous.

Thank for the idea about putting it in a jail but the only thing that it is for is for me just to move files through out my network not the wan.

0
 
LVL 13

Assisted Solution

by:WizRd-Linux
WizRd-Linux earned 334 total points
Comment Utility
for anonymous logins you will find they are logging in as a specific user.  You will need to change this users home directory to get them to login to /storage/ftp.

Eg if the user is ftpuser you would use: usermod -d /storage/ftp ftpuser
0

Featured Post

Want to promote your upcoming event?

Is your company attending an event or exhibiting at a trade show soon? Are you speaking at a conference? Spread the word by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

Preface There are many applications where some computing systems need have their system clocks running synchronized within a small margin and eventually need to be in sync with the global time. There are different solutions for this, i.e. the W3…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now