歡迎您光臨本站 註冊首頁

vsftpd 大師幫幫忙呀,我搞不定了!!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

vsftpd 大師幫幫忙呀,我搞不定了!!

我做了一個FTP伺服器,做了虛擬用戶,建了三個用戶,admin,upload,download
不知道為什麼只有download可以登陸,並且只可以讀,admin和upload不能,
# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 1.2.1)
Name (localhost:wallace): admin
331 Please specify the password.
Password:
500 OOPS: bad bool value in config file for: write_enable
Login failed.
421 Service not available, remote server has closed connection

我的/etc/vsftpd_user_conf下admin內容
anon_world_readable_only=NO
write_enable=YES
anon_upload_enable=YES
anon_other_write_enable=YES
anon_mkdir_write_enable=YES

幫幫我吧!
《解決方案》

沒有人幫忙呀,暈!!
《解決方案》

行的值都不要有空格,否則登錄時會出現錯誤,舉個例子,假如我在write_enable=YES后多了個空格,那我登錄時就出現如下錯誤:
500 OOPS: bad bool value in config file for: write_enable
《解決方案》

你配虛擬用戶的時候三個用戶的密碼一樣嗎??
我的FTP有時候虛擬用戶配相同的密碼就只有第一個用戶能進
《解決方案》

原文:http://linux.chinaunix.net/bbs/thread-1095027-1-1.html

vsftpd安裝配置可以看:http://bbs.linuxsun.cn/search.php?
searchid=7&;orderby=lastpost&ascdesc=desc&searchsubmit=yes
/etc/vsftpd.conf
---------------------------------------
# Example config file /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
user_config_dir=/etc/vsftpd/user_list
guest_enable=YES
#guest_username=daemon
#pam_service_name=vsftpd
pam_service_name=/etc/pam.d/ftp.vu
connect_from_port_20=YES
write_enable=YES
local_umask=000
dirmessage_enable=YES
xferlog_enable=YES
listen=YES
listen_port=21
------------------------------------
虛擬用戶linuxsun
------------------------------------------
#  cat /etc/vsftpd/user_list/linuxsun
local_umask=077
guest_username=linuxsun
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
local_root=/www/ftp/cnc
-----------------------------------
有一個非常鬱悶的問題。LeapFTP 用linuxsun登錄,上傳一個文件測試下。發現許可權-rw-----
根據網上的資料說,設置成:
local_umask=000
但是我自己測試,就算這樣設置,新上傳的文件許可權還是-rw-----
why????
算了,用crontab 來自動設置許可權吧:
================================

[火星人 ] vsftpd 大師幫幫忙呀,我搞不定了!!已經有549次圍觀

http://coctec.com/docs/service/show-post-23611.html