Implement dropping into a defined user/group after startup #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
On Unix-based systems, ports below 1024 are seen as "system ports", and cannot be bound to unless by root. This is a security risk for an FTP server that listens on control port 21. Service management can allow us to bind to system ports without an elevated user but we should handle dropping into a defined user in case the server is ran as a superuser.
We can most likely implement this drop when we initialize a client, as that is where file manipulations are handled. The main thread simply handles incoming connections and distributes them, which isn't a big security risk under root.
User/group should be handled by configuration values, defaulting to "ftp".