Chu y Config Vsftp

Embed Size (px)

DESCRIPTION

Chu y Config Vsftp

Citation preview

write_enable=YESuseradd userftp -p '123456' -d /var/tmp/uerftp-s /bin/falseUsers with /bin/false shell to login on vsftpdInNetworkingbyHalil Demirezenover 6 years ago0 CommentWith default configuration of vsftp (vsftpd.conf under /etc) users with no shell or/bin/falseshell are not able to login vsftpd ftp server. This is becausevsftpd.confincludes such a line to enable pam module.pam_service_name=vsftpdThis line points to which pam service name will be applied. Pam configuration related to vsftpd is then/etc/pam.d/vsftpd .This pam file contains a file such as:auth required pam_shells.soThis means basically only the users who have valid shells will be authenticated.Setting the shell to /bin/falseof a user simply means that this user will not be able to login the system via vsftpd. (ftp service).To enable users with no valid shell to login the ftp server, commenting out this line in/etc/pam.d/vsftpdfile will be sufficient.Command ftp client!pwd : xem duong dan thu muc tren may local