pure-ftpd problems running inside a LXC

Ovidiu

Renowned Member
Apr 27, 2014
326
13
83
I get this error:
Code:
pure-ftpd[17481]: (?@?) [ERROR] Unable to switch capabilities

googling pointed me towards a few threads suggesting it won't work with a non-stock kernel. Looking into the Proxmox forums I found this old thread dealing with the same problem but OPENVZ and not LXC. Not sure how to apply the suggested solution to LXC. => https://forum.proxmox.com/threads/error-ftp-modprobe-capabilities.632/#post-2855

Any solutions? The LXC is running Centos 7.3
 
What was you google search exactly? I did a search with 'pure-ftpd lxc "Unable to switch capabilities"' and got these promising results:

http://dikant.de/2009/01/22/setting-up-pureftpd-on-a-virtual-server/ - okay, recompiling but works

all other links are also about recompiling the daemon.

The more important question arises: Why will you use FTP? For decades, there is SFTP (not FTPs) integrated in SSH for secure out of the box file transfers.
 
Good point about SFTP that will do for me so I'll abandon pureftpd. Thanks for the pointer.

The point about me asking and pointing to that old proxmox 1.x thread is that the solution for Openvz did work without recompiling so I had hoped there might be something similar around for LXC. This is what worked with Openvz:
Code:
#vzctl set <VEID> --capability capname:on|off