Okay i set the config file for logs. It gives general "wrong password" error.
server.xxx.com  ::ffff:(MY IP) [06/Mar/2008:15:33:08 +0200] "USER ftpuser" 331
server.xxx.com  ::ffff:(MY IP) [06/Mar/2008:15:33:11 +0200] "PASS (hidden)" 530
And i found something strange. All users can't login, except root. Root user can login if the pam config set and if the mod_auth_pam set as first auth order. If not, root user can't login too.
# Use pam to authenticate (default) and be authoritative
AuthOrder mod_auth_pam.c* mod_auth_unix.c
If mod_auth_linux first, root user can't login. If mod_auth_pam removed, root user can't login. But logging anonymously with any user is working great (home dirs vs..)
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth required pam_stack.so service=system-auth
auth required pam_shells.so
account required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
Also there's no user at /etc/ftpusers, which i want to use at ftp.
What can i do? Do you have an idea? I don't know much about PAM.