?
Solved

Change the default directory for VSFTPD

Posted on 2007-12-04
4
Medium Priority
?
17,071 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Assisted Solution

by:ckhsu1977
ckhsu1977 earned 664 total points
ID: 20407131
0
 
LVL 13

Accepted Solution

by:
WizRd-Linux earned 1336 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 1336 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

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

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

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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