CentOS 7 安装配置FTP

来源:互联网 发布:java中类的修饰符 编辑:程序博客网 时间:2024/05/22 07:52

安装vsftpd

yum install -y vsftpd

编辑ftp配置文件

vi /etc/vsftpd/vsftpd.confanonymous_enable=NO#anonymous_enable=YESchroot_local_user=YES#去掉前面的注释#chroot_list_enable=YES#chroot_list_file=/etc/vsftpd/chroot_list#不受限制的用户列表,用不用都OKallow_writeable_chroot=YES#加上这行解决了无法登陆的问题

启动/重新启动ftp

service vsftpd startservice vsftpd restart

设置开机启动ftp

chkconfig vsftpd on

建立ftp账户

useradd -d /path/you/want -s /sbin/nologin codeeer

设置密码

passwd codeeer

设置账户权限

chown -R codeeer /path/you/want
0 0
原创粉丝点击