Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

8 Answers 8

with root permission

vim /etc/vsftpd.conf

set

listen=NO

then

service vsftpd restart
share|improve this answer

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

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

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

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

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

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

Your Answer

 
discard

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