#%PAM-1.0
# PAM configuration for vsftpd with automatic hosting user access
# This allows all users with UID >= 1000 to access FTP automatically

# Authentication: verify user credentials
auth       required     pam_unix.so nullok
auth       required     pam_shells.so

# Account management: check if user should be allowed
# Only allow users with UID >= 1000 (hosting users)
account    required     pam_unix.so
account    required     pam_access.so accessfile=/etc/security/ftp.access
account    required     pam_succeed_if.so uid >= 1000 quiet

# Session management
session    required     pam_unix.so 