Accidently deleted /etc/init.d/samba

Discussion in 'Server Operation' started by tomde, May 26, 2008.

  1. tomde

    tomde New Member

    Hi, I accidently removed /etc/init.d/samba when preforming a clean remove of all of samba's files. I didn't realize that apt-get install samba didn't reinstall /etc/init.d/samba. Also what I find a bit annoying is that apt-remove doesn't remove any configuration files. And thats basically the reason why I'm missing /etc/init.d/samba, since I preformed a full search to delete anything named samba. I guess that was a bad idea. Now how would I get this file back? Can some one post its contents and I just paste and copy?
    thanks all!!
  2. tomde

    tomde New Member


    # apt-get install samba samba-common
    # apt-get --purge remove samba samba-common
    # apt-get clean
    # apt-get install samba samba-common

    Note I had to reinstall it since I had already removed the packages.

Share This Page