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 email@example.com from 126.96.36.199 port 13374 ssh2 Mar 18 15:53:29 primary sshd: pam_unix(sshd:session): session opened for user firstname.lastname@example.org 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 email@example.com 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.