首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法启动vsftpd。vsftpd:必须作为root启动

无法启动vsftpd。vsftpd:必须作为root启动
EN

Unix & Linux用户
提问于 2020-08-06 02:16:57
回答 1查看 1.6K关注 0票数 -1

我无法启动我的vsftpd,如下所示:

代码语言:javascript
复制
guoyanzhang@debian:~$ sudo service vsftpd status
● vsftpd.service - vsftpd FTP server
    Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Wed 2020-08-05 15:47:07 HDT; 1min 30s ago
    Process: 4066 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
    Process: 4067 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
    Main PID: 4067 (code=exited, status=2)

Aug 05 15:47:07 debian systemd[1]: Starting vsftpd FTP server...
Aug 05 15:47:07 debian systemd[1]: Started vsftpd FTP server.
Aug 05 15:47:07 debian systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 05 15:47:07 debian systemd[1]: vsftpd.service: Failed with result 'exit-code'.
代码语言:javascript
复制
guoyanzhang@debian:~$ sudo vim /etc/vsftpd.conf
guoyanzhang@debian:~$ /etc/init.d/vsftpd restart
[....] Restarting vsftpd (via systemctl): vsftpd.service====AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'vsftpd.service'.
Authenticating as: root
Password:
==== AUTHENTICATION COMPLETE ===
. ok
guoyanzhang@debian:~$ /usr/sbin/vsftpd /etc/vsftpd.conf
500 OOPS: vsftpd: must be started as root (see run_as_launching_user option)
guoyanzhang@debian:~$ sudo cat /etc/vsftpd.conf
#begin my configurations
listen=YES
listen_address=192.168.1.108
connect_from_port_20=YES
anonymous_enable=NO
chroot_local_user=YES
use_localtime=YES
local_enable=YES 
local_root=/home/guoyanzhang/share/myftp
xferlog_enable=YES
local_umask=022
#end my configurations
EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2020-08-06 08:08:17

错误是不言自明的.您必须以root的形式运行,或者使用run_as_launching_user选项,如vsftpd.conf手册所述:

如果您希望vsftpd作为启动vsftpd的用户运行,则run_as_launching_user设置为YES。当根访问不可用时,这是有用的。

请注意,启用此选项可能会对安全构成威胁,因为您目前使用的chroot_local_user选项和run_as_launching_user选项是相互排斥的。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/603075

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档