220---------- Welcome to Pure-FTPd [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 22:07. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Host type (1): Automatic detect
331 User madboy OK. Password required
530 Authentication failed, sorry
It will not work .. it has never worked whenever i changed user password from ssh.
Login to WHM and try Resync FTP password or something like that link is there.... thereafter it should work ... works in my case whenever i do a passwd username from ssh
You can check xfer log to check ftp log. As per your log it is showing that 530 Authentication failed, sorry it means that it is not taking your password. Also check useradd created /home/madboy directory.
This is a serious problem. I never really tried changing root password from ssh and then logging off. If the same is reproducible then i am done for the day. So for password changing i always prefer doing it from WHM. Yes for ftpd it's reproducible any number of times user password is changed from ssh.
It won't work if you change a password using passwd because IIRC (and oddly) pure-ftpd on cPanel uses the /etc/proftpd/passwd.vhosts file for authentication, not /etc/passwd and so you have to sync the passwords in WHM which basically copies the passwd record into the pure-ftpd auth file.