I am running pureftp in docker container as non-root user file_app
.
Here is the permission I assigned
chown -R file_app:file_app /etc/pure-ftpd
chown -R file_app:file_app /etc/ssl/private
chown -R file_app:file_app /var/log/pure-ftp
chown -R file_app:file_app /usr/share/lintian/overrides/pure-ftpd
chown -R file_app:file_app /usr/share/nginx # FTP HOME DIR
When I try to start /usr/sbin/pure-ftpd
as user file_app
, I get this error
Unable to start a standalone server: Permission denied
When I start as root, everything works
How to run pure-ftpd as non-root user?
You might need to change the
Bind
line in your/etc/pure-ftpd
config file to listen on a port which doesn't require root privileges, e.g.:Hope this helps!