1

How do I change the configuration location of vsftpd? It is currently in a file directly off /etc and I'd like it to be in /etc/vsftpd/ so that I can include some other stuff in there and not clutter up /etc while I'm at it. It also makes configuration management a bit easier as I'm considering a cluster of these.

1
  • OS: I'm dealing with 14.04 Server.
    – flickerfly
    Jun 19, 2015 at 19:37

1 Answer 1

2

The location of vsftpd can be specified as a command-line parameter. To do so, you'll need to override the default command in /etc/init/vsftpd.conf (assuming you're not on 15.04 or later):

printf "exec /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf\n" | 
  sudo tee -a /etc/init/vsftpd.override

Now restart vsftpd and it should pick up the new location.

sudo service vsftpd restart
2
  • @A.B. Mistakes happen, that's ok, don't mention it. Why did you delete your answer, though?
    – muru
    Jun 19, 2015 at 19:42
  • My answer does not make sense when the solution is so simple.
    – A.B.
    Jun 19, 2015 at 19:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .