Solved

Change the default directory for VSFTPD

Posted on 2007-12-04
4
16,957 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
ID: 20407131
0
 
LVL 13

Accepted Solution

by:
WizRd-Linux earned 334 total points
ID: 20407326
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
ID: 20408198
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
ID: 20408281
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nagios alerts 3 33
How to find Linux Server's last patch date 9 37
wipe a usb using python 5 30
looking for a CENTOS ISO to download with x window installed 2 23
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

863 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

18 Experts available now in Live!

Get 1:1 Help Now