freebsd 下vsftpd安装错误

===> Deinstalling for ftp/vsftpd

===> vsftpd-ssl not installed, skipping

===> Installing for vsftpd-ssl-3.0.2

/usr/bin/env PKG_PREFIX=/usr/local /bin/sh /usr/ports/ftp/vsftpd/pkg-install vsftpd-ssl-3.0.2 PRE-INSTALL

pw: no such user `ftp’

pw: user ‘ftp’ already exists

Failed to add user ftp as gid 14

*** Error code 1

Stop in /usr/ports/ftp/vsftpd.

*** Error code 1

Stop in /usr/ports/ftp/vsftpd.

 

遇到这个问题后,搞了一天,才得到解决,也不知道是不是对所有人都实用。解决方法如下:

直接删除ee /etc/password 和 /etc/master.passwd手动删除ftp用户,然后

pwd_mkdb /etc/master.passwd更新一下ok

再cd /usr/ports/ftp/vsftpd && make install clean

Drop Your Comment