Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-22-2017, 07:40 PM   #1
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
vsftp documentation on setting "document root"

I looked at man pages for vsftpd and vsftpd.conf,
as well as /etc/vsftpd/vsftpd.cpnf.
These are all the docs I could find using man -k vsftp.

I could not find out how to setup the
"document root" for upload or download
using the above documents.

There is NO mention of setting the directory for "document root".

"document root" means the default path when I connect to ftp.

What did I missed?
Thank you.

Last edited by fanoflq; 02-22-2017 at 07:49 PM.
Old 02-22-2017, 07:51 PM   #2
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
I think these are the directives to set for
non-anonymous and anonymous access.

From man vsftpd.conf:
This option represents a directory which vsftpd will try to change into after a local (i.e. non-anonymous) login. Failure is silently ignored.

Default: (none)

This option represents a directory which vsftpd will try to change into after an anonymous login. Failure is silently ignored.

Default: (none)
Old 02-23-2017, 02:40 AM   #3
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
You're probably looking for chroot_list_enable and chroot_local_user. These will limit the user to a particular directory/location but does have a few caveats with their usage, mainly you must ensure the users can not modify the directory/location itself, being able to create/delete/modify things in the location however is fine. The caveat mainly applies to local users who may have SSH or SFTP access also.

The options you have got would appear to be no more than a simple change directory, no limitation.

Last edited by r3sistance; 02-23-2017 at 02:41 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VSFTP help streetsofrage Linux - Server 6 01-27-2011 04:48 AM
Vsftp crazy8 Linux - Software 15 09-24-2007 03:56 PM
little help with vsftp thanks a2carat Linux - Networking 2 01-30-2004 01:37 PM
vsftp help ksgill Linux - Newbie 7 09-25-2003 02:31 PM
Vsftp struja Linux - Software 2 09-24-2003 04:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration