For some reason there was no ftp entry in etc/shadow. It did exist in etc/passwd though.
I copied one of lines in etc/shadow ("ntp:*:14638:0:99999:7:::") and edited it to "ftp:*:14638:0:99999:7:::" then ran "apt-get purge vsftpd". It worked, vsftpd was removed and ftp entries in both "/etc/passwd" and "/etc/shadow" vanished, excellent!
Now to install anew:
Code:
:~# apt-get install vsftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
vsftpd
0 upgraded, 1 newly installed, 0 to remove and 258 not upgraded.
Need to get 143kB of archives.
After this operation, 475kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org squeeze/main vsftpd 2.3.2-3+squeeze2 [143kB]
Fetched 143kB in 1s (84.1kB/s)
Preconfiguring packages ...
(Reading database ...
dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.
(Reading database ... 18505 files and directories currently installed.)
Unpacking vsftpd (from .../vsftpd_2.3.2-3+squeeze2_powerpc.deb) ...
dpkg: error processing /var/cache/apt/archives/vsftpd_2.3.2-3+squeeze2_powerpc.deb (--unpack):
trying to overwrite '/etc/logrotate.d/vsftpd', which is also in package wd-nas 01.00.01-46026
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/vsftpd_2.3.2-3+squeeze2_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sorry but you didn't think it would be that easy huh?
OK checked last modified file date it's 2011-05-07 so indeed overwrite did not happen, here's the contents of "/etc/logrotate.d/vsftpd":
Code:
/var/log/vsftpd.log
{
create 640 root adm
# ftpd doesn't handle SIGHUP properly
missingok
notifempty
}
Great so I figured if I run mv "/etc/logrotate.d/vsftpd" "/etc/logrotate.d/vsftpd.bak" to rename the file it doesn't have to overwrite.
But, it made no difference! "apt-get install vsftpd" gives the same output as above, even when "/etc/logrotate.d/vsftpd" does not even exist.
Unpack seems to fail, how to proceed?