adduser -d /http/user1-g ftp -s /sbin/nologin user1
# passwd user1
Changing password for user user1.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
在/etc/vsftpd/下面有chroot_list 文件,在里面加入账号就可以了,一行一个
本文共 299 字,大约阅读时间需要 1 分钟。
adduser -d /http/user1-g ftp -s /sbin/nologin user1
# passwd user1
Changing password for user user1.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
在/etc/vsftpd/下面有chroot_list 文件,在里面加入账号就可以了,一行一个
转载于:https://www.cnblogs.com/dcj890828/articles/3613806.html