Set the user can only login ftp, not landing system

Add user

# useradd -d /xxx/xxxx -s /usr/bin/nologin  username

Landing will find not land ftp

Pam also need to close the excessive verification.

Vim /etc/pam.d/ # vsftpd 

comment out the following sentence. 
################################### 

#auth required     /lib/security/pam_shells.so

 

Guess you like

Origin www.cnblogs.com/mc-r/p/11615781.html
Recommended