使用RH 系Linux,Debian系請酌情參照 安裝ftp所需包 安裝ftp包 安裝vsftpd包 註:配置文件路徑 /etc/vsftpd/ 創建ftp用戶,並付賦權 創建普通用戶(我這裡用戶名為huoher) 設置該用戶只能使用ftp而不能通過ssh或其他協議登錄進來 由於用戶是ftp的,不是 ...
使用RH 系Linux,Debian系請酌情參照
安裝ftp所需包
安裝ftp包
yum -y install ftp
安裝vsftpd包
yum -y install vsftpd
註:配置文件路徑 /etc/vsftpd/
創建ftp用戶,並付賦權
創建普通用戶(我這裡用戶名為huoher)
useradd huoher
設置該用戶只能使用ftp而不能通過ssh或其他協議登錄進來
usermod -s /sbin/nologin huoher
由於用戶是ftp的,不是正常的登錄用戶,修改其用戶主目錄(我的是/mnt)
usermod -d /mnt huoher
設置用戶密碼
passwd huoher
可能你是用root創建的目錄,現在更改所有者
chown huoher huoher/
#chown 用戶名 目錄名
關閉sellinux
setenforce 0
可以試試ftp服務了