Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

HI,

Im trying to prevent vsftpd to start at boot time and didnt find how until now... Im using Ubuntu 10.04 LTS. I have installing vfstpd via apt-get I have removed the init script from init.d directory and did the following command :

update-rc.d vsftp remove
update-rc.d vsftpd remove

but vsftpd still run at boot time...

I would like to know how to prevent it to start at boot time and how to start it at boot time in case I change my mind.

thanks you all

share|improve this question

migrated from stackoverflow.com Oct 5 '10 at 12:30

This question came from our site for professional and enthusiast programmers.

Starting with Ubuntu 11.04 you can also use

echo manual >> /etc/init/vsftpd.override

Reference: http://askubuntu.com/a/20347

share|improve this answer

According to some search result on ubuntu forums the best way is to

mv /etc/init/vsftpd.conf /etc/init/vsftpd.conf.off
share|improve this answer
    
Starting with Ubuntu 11.04 you can also use echo manual >> /etc/init/vsftpd.override. Reference: [askubuntu.com/a/20347] – Stefan L Dec 16 '12 at 12:07
    
You should make that a new answer. When I posted my answer (2010) ubuntu (20)11.04 wasn't available yet. – ptman Dec 16 '12 at 13:34

I don't know why it's like this for you but personally I use

sysv-rc-conf

which is the visual editor that let you enable or disable your rc.d easily.

share|improve this answer
    
thanks but I have been using this one too and i think its doing quite the same job of update-rc.d and its doenst work too. vsftpd still launch at boot time. – Fabien Oct 5 '10 at 9:15

Look at the /etc/init/ scripts. Basically, if it's started via upstart, you just have to delete or comment the "start" statement on the top of the vsftpd related file.

share|improve this answer

Vstpd demon is controlled by new service: upstart.

You can turn off it by editing /etc/init/vsfpd.conf file and simple commenting 2 lines (in my case line 7 and 8). It should be something like that:

start on (filesystem
        and net-device-up IFACE!=lo)

Or you can use these command:

sudo sed -i.old -e '/start/,+1s/^/#/' /etc/init/vsftpd.conf

It comments the line with word start and the next line. Before changes it makes copy of the file and saves it under the name: vsftpd.conf.old.

share|improve this answer

Try looking for vsftpd references in /etc:

grep vsftpd -R /etc

It may be started from /etc/rc.local for example.

share|improve this answer

If there is not a listen=yes or listen_ipv6=yes in your /etc/vsftpd.conf, then the service will not be started.

share|improve this answer

with root permission

vim /etc/vsftpd.conf

set

listen=NO

then

service vsftpd restart
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.