500 OOPS: vsftpd: cannot locate user specified in ‘ftp_username’:ftp

來源:互聯網
上載者:User
500
OOPS: vsftpd: cannot locate user specified in 'ftp_username':ftp

的錯誤訊息。我在google上搜了一把後來發現有一封mail非常有用:
http://lists.debian.org/debian-user/.../msg02648.html 

其中有一段話提到:

Yep, I did. There is no occurrence of the string "tunable" anywhere in the vsftpd.conf man page ...

However, I've been delving into the source code, and now understand this - the author uses the name of a config file directive *prefixed by* "tunable_" inside the source code as a variable name. So what I needed to do was define "ftp_username" in vsftpd.conf.
For some reason the Debian package leaves a little to be desired in this area, and neither asks you how you want this directive set, nor creates an account for use with vsftpd anonymous connections. The default for this directive is the name "ftp", but there
has never been an "ftp" account on my Woody system, nor was one created by the vsftpd installation.

作者提到收到一個500 Oops但是其中提到的tunable_ftp_username哪裡也找不到。後來他查看源碼,發現源碼中是使用一個以"tunable_"為首碼的變數,實際上相應在vsftpd.conf中應該是ftp_username這個directive。所以他在vsftpd.conf中加入了ftp_username=xxx(使用者)這一行。但是他也抱怨Debian的發行版沒有在任何地方標識這樣的問題。而且這個ftp_username的預設使用者應該是ftp,但是woody系統預設安裝後並沒有這個ftp使用者存在,而且vsftpd安裝後也沒有添加這個使用者。

註:我是用ftp_username=nobody的,然後/etc/init.d/vsftpd restart後成功登陸。


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.