pure-ftpd problems running inside a LXC

Ovidiu

Renowned Member
Apr 27, 2014
324
12
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!