I have a Virtualmin server with several virtualservers running on it. On one of those servers I created a new FTP user and tried logging in but what happens is that it gets connected and then immediately disconnected. In
/var/logs/auth.log I found this
Mar 18 15:53:29 primary sshd: Accepted password for firstname.lastname@example.org from 188.8.131.52 port 13374 ssh2 Mar 18 15:53:29 primary sshd: pam_unix(sshd:session): session opened for user email@example.com by (uid=0) Mar 18 15:53:29 primary systemd: pam_unix(systemd-user:session): session opened for user domain by (uid=0) Mar 18 15:53:30 primary systemd-logind: New session 9 of user domain. Mar 18 15:53:30 primary sshd: pam_unix(sshd:session): session closed for user firstname.lastname@example.org Mar 18 15:53:30 primary systemd-logind: Removed session 9.
If I use the virtualserver login details (ones that are used to login at domain.com:10000) in ftp, it works fine. Also the root user also works fine. I tried creating ftp user on another Virtualserver and that had the same issue as well.