Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-07-2004, 03:36 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 29

Rep: Reputation: 15
changing default directory on "vsftp" server

Hi Everybody,

I am trying to change my defualt directory from /ver/ftp to something else on my vsftp server. It is not working at all. I don't know which files to configure. I've checked the /etc/vsftpd/vsftpd.conf file but could not find anything in there that would help me. I've also tried to create a hard link from that directory to a different one ant it says that it is not allowed to create a link from that directory to where I wanted. I really don't know what can be done here?

Thank you,

Old 04-07-2004, 04:17 AM   #2
LQ Newbie
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0

To change your ftp root directory, as root, edit /etc/vsftpd/vsftpd.conf and add the following line:


This will change the ftp root to /opt, but this can be whatever you feel like.
Save the file and be sure to restart xinetd (not sure if this is necessary, but no harm doing so).


Old 04-07-2004, 06:58 AM   #3
LQ Newbie
Registered: Mar 2004
Posts: 29

Original Poster
Rep: Reputation: 15
After I added that line I get a message saying: A connection was refused when attemting to contact ------- name of the server

Old 04-08-2004, 05:03 AM   #4
LQ Newbie
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Hi add the follwoing lines to vsftpd.conf and restart vsftpd afterwards:


This works for me when logging in as normal user via ftp.
Old 01-07-2014, 02:07 PM   #5
LQ Newbie
Registered: Nov 2007
Posts: 6

Rep: Reputation: 1
change the ftp user directory to...

to change the default login directory for vsftpd, change the ftp user home directory in /etc/passwd:
ftp:x:116:116:vsftpd daemon:/var/vsftpd:/bin/false

The ftp user (userID=116) home directory changed to /var/vsftpd
This will allow the default/anonymous/unknown user to land into a specific place(/var/vsftpd).

I use this feature to lock down the ftp daemon to a read-only area with a set of general files available for upload. I also have a special directory (/var/vsftpd/upload) which is writeable but not delete-capable. That way, someone can send up a file for share but only I, the site administrator can move/change/delete it.

Hope this helps.


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
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM
Kdevelop: Changing my programs default "make install" dir DeTHZiT Programming 0 09-26-2004 01:06 PM
Authenticating to Samba share using "Active Directory Server" hlslaughter Linux - Software 36 07-23-2004 10:59 AM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 03:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:28 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration