centos 服务器操作

 CENTOS下创建FTP登录用户

yum install vsftpd
2.启动/重启/关闭vsftpd服务器
[root@localhost ftp]# /sbin/service vsftpd restart

Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
OK表示重启成功了.
启动和关闭分别把restart改为start/stop即可

如果是源码安装的,到安装文件夹下找到start.sh和shutdown.sh文件,执行它们就可以了.

4.添加FTP本地用户
FTP用户一般是不能登录系统的,只能进入FTP服务器自己的目录中,这是为了安全.不能登录SHELL了而已,没能力登录系统.
/usr/sbin/adduser -d /alidata/www/t.0757j.net -g ftp -s /sbin/nologin t.0757j.net
这个命令的意思是:
使用命令(adduser)添加t.0757j.net用户,不能登录系统(-s /sbin/nologin),自己的文件夹在(-d /alidata/www/t.0757j.net)),属于组ftp(-g ftp)
然后你需要为它设置密码 passwd t.0757j.net

posted on 2015-07-16 00:29  天道道  阅读(231)  评论(0编辑  收藏  举报

导航