Solved

Change the default directory for VSFTPD

Posted on 2007-12-04
4
16,963 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
SSL is a very common protocol used these days when browsing the web.  The purpose is to provide security to communication, but how does it do it?  There are several pieces at work that have to be setup before SSL will even work and it requires both …
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

840 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