Last active
April 13, 2020 04:44
-
-
Save daubac402/46f023ce26b9392d650602a32d2edf07 to your computer and use it in GitHub Desktop.
Can not Add user to vsftpd? Have a look at pam_service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Check in /etc/vsftpd/vsftpd.conf | |
pam_service_name=??? | |
2) Check pam config in /etc/pam.d/??? | |
Eg: | |
auth required /usr/lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login | |
account required /usr/lib64/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login | |
3) Check user config to set home directory at /etc/vsftpd/vsftpd.conf | |
user_config_dir=/etc/vsftpd/vsftpd_user_conf/ | |
then | |
add new user: | |
useradd your_new_user | |
seting password: | |
passwd your_new_user | |
also append that user and password to /etc/vsftpd/logins.txt | |
your_new_user | |
your_new_password | |
set FTP default folder: | |
vim /etc/vsftpd/vsftpd_user_conf/your_new_user | |
local_root=/your_path | |
4) Regenerate user list db file | |
db_load -T -t hash -f /etc/vsftpd/logins.txt /etc/vsftpd/vsftpd_login.db | |
5) Restart vsftpd | |
systemctl restart vsftpd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment