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 文件,在里面加入账号就可以了,一行一个
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