Home | Mirror | Search

第 3 章 常用网络服务

目录

1. vsftpd
2. rsync
3. NTPD
4. dnsmasq
5. snmp
6. nrpe
7. bandwidthd
8. samba
9. OpenSSH
9.1. history 安全
9.2. sshd_config
9.3. HISTTIMEFORMAT
10. haproxy
11. ZModem
12. Puppet
12.1. Puppet Master
12.2. Puppet Nodes
13. curl

1. vsftpd

	
        yum install -y vsftpd
        adduser --home-dir /www/logs/ --shell /sbin/nologin logs
        echo logs >> /etc/vsftpd/chroot_list
        vim /etc/vsftpd/vsftpd.conf <<VIM > /dev/null 2>&1
:%s/#chroot_list_enable=YES/chroot_list_enable=YES/
:%s/#chroot_list_file/chroot_list_file/
VIM
        chkconfig vsftpd on
        service vsftpd start
	
	
	
adduser -o --home /www --shell /sbin/nologin --uid 99 --gid 99 --group nobody www
echo "www:chen" | chpasswd
echo www > /etc/vsftpd/chroot_list
ncftp ftp://www:chen@172.16.0.1
	
	
comments powered by Disqus