Friday, January 28, 2011

UBUNTU:How to NOT run vsftpd at boot time... ?!

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

  • Hi,

    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.

  • 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.

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

    mv /etc/init/vsftpd.conf /etc/init/vsftpd.conf.off
    
    From ptman
  • Try looking for vsftpd references in /etc:

    grep vsftpd -R /etc
    

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

  • 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.

0 comments:

Post a Comment