proFTPD and deleted /etc/proftpd/ folder

Discussion in 'Site & Server Administration' started by karabaja2, Jun 4, 2013.

  1. #1
    Please help. I have a server (Debian 6) in which somebody for some unknown reason manually removed the /etc/init.d/proftpd and /etc/proftpd/ folder, without uninstalling ProFTPD's. Of course, now ProFTPD server does not work. It can not be be (re)installed or configured.

    How to properly remove it and re-install via console?
     
    karabaja2, Jun 4, 2013 IP
  2. testu

    testu Well-Known Member

    Messages:
    231
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #2
    I would try apt-get remove proftpd and then apt-get install proftpd. If you need further help, please let us know.

    Good luck!
     
    testu, Jun 4, 2013 IP
  3. karabaja2

    karabaja2 Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Thank for replying. I already tryed with apt-get remove proftpd and recived:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'proftpd-basic' instead of 'proftpd'
    The following packages will be REMOVED:
      proftpd-basic
    0 upgraded, 0 newly installed, 1 to remove and 30 not upgraded.
    1 not fully installed or removed.
    After this operation, 4170 kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 56142 files and directories currently installed.)
    Removing proftpd-basic ...
    invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
    dpkg: error processing proftpd-basic (--remove):
    subprocess installed pre-removal script returned error exit status 100
    configured to not write apport reports
                                          Errors were encountered while processing:
    proftpd-basic
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    
    Code (markup):
    Then I tryed with reuploading missing files with the default ones. After I ran apt-get update and apt-get upgrade, and still did not get proFTPD working.
    After tryed agin with the uninstall command which returned this:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Note, selecting 'proftpd-basic' instead of 'proftpd'
    The following packages will be REMOVED:
      proftpd-basic
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 4170 kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 56142 files and directories currently installed.)
    Removing proftpd-basic ...
    : not found/proftpd: 2:
    : not found/proftpd: 7:
    : not found/proftpd: 9:
    /etc/init.d/proftpd: 19: Syntax error: word unexpected (expecting "in")
    invoke-rc.d: initscript proftpd, action "stop" failed.
    dpkg: error processing proftpd-basic (--remove):
    subprocess installed pre-removal script returned error exit status 2
    configured to not write apport reports
                                          insserv: warning: script 'K01proftpd' missing LSB tags and overrides
    insserv: warning: script 'proftpd' missing LSB tags and overrides
    Cannot start proftpd, please check syntax of your configuration file /etc/proftpd/proftpd.conf
    Errors were encountered while processing:
    proftpd-basic
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Code (markup):
     
    Last edited: Jun 4, 2013
    karabaja2, Jun 4, 2013 IP
  4. testu

    testu Well-Known Member

    Messages:
    231
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    #4
    If you can grant me access to your server I will fix this for you.
     
    testu, Jun 4, 2013 IP
  5. karabaja2

    karabaja2 Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    Thanks for your kind offer, unfortunately I am not authorized to do so. :(
     
    karabaja2, Jun 4, 2013 IP
  6. XaKePaT

    XaKePaT Active Member

    Messages:
    186
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    80
    #6
    try command - yum remove proftpd , yum install proftpd
     
    XaKePaT, Jun 6, 2013 IP
    CodeBeast likes this.
  7. karabaja2

    karabaja2 Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #7
    Thank you for your response. Unfortunately, it did not solved the problem either. Finally I tried to find deleted files on the web. In the third attempt I found proper files. After a system restart it worked. Thank you all.
     
    karabaja2, Jun 7, 2013 IP
  8. anyNode

    anyNode Greenhorn

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #8
    Hes running Debian/Ubuntu anyways so that wouldn't have worked, but I'm glad you got it solved
     
    anyNode, Jul 17, 2013 IP
  9. karabaja2

    karabaja2 Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #9
    Thank you!
     
    karabaja2, Jul 20, 2013 IP