當前位置:首頁 » 文件管理 » vsftpd無法上傳文件

vsftpd無法上傳文件

發布時間: 2022-10-03 03:10:18

㈠ vsftpd能登陸不可以上傳,指定了/var/ftp為777,把匿名打開都不行,附上配置文件,在線等跪求解,急死了

本地用戶可以上傳嗎?有可能是selinux的問題。
使用root許可權,執行這個命令試試:
setsebool ftp_home_dir=1

我的centos 5.4 (x64),通過這個方法解決了。

㈡ vsftpd.conf配置文件怎麼改我咋linux里安裝了vsftp 在windows 下能連接進去,但是不能上傳下載,求教

根據/etc/vsftpd/vsftpd.conf默認配置給出設定功能 # Example config file /etc/vsftpd/vsftpd.conf# The default compiled in settings are fairly paranoid. This sample file# loosens things up a bit, to make the ftp daemon more usable.# Please see vsftpd.conf.5 for all compiled in defaults.# READ THIS: This example file is NOT an exhaustive list of vsftpd options.# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's# capabilities.# Allow anonymous FTP? (Beware - allowed by default if you comment this out).anonymous_enable=YES允許匿名用戶登錄# Uncomment this to allow local users to log in.local_enable=YES允許系統用戶名登錄# Uncomment this to enable any form of FTP write command.write_enable=YES允許使用任何可以修改文件系統的FTP的指令# Default umask for local users is 077. You may wish to change this to 022,# if your users expect that (022 is used by most other ftpd's)local_umask=022本地用戶新增檔案的許可權# Uncomment this to allow the anonymous FTP user to upload files. This only# has an effect if the above global write enable is activated. Also, you will# obviously need to create a directory writable by the FTP user.#anon_upload_enable=YES允許匿名用戶上傳文件# Uncomment this if you want the anonymous FTP user to be able to create# new directories.#anon_mkdir_write_enable=YES允許匿名用戶創建新目錄# Activate directory messages - messages given to remote users when they# go into a certain directory.dirmessage_enable=YES允許為目錄配置顯示信息,顯示每個目錄下面的message_file文件的內容# Activate logging of uploads/downloads.xferlog_enable=YES開啟日記功能 # Make sure PORT transfer connections originate from port 20 (ftp-data).connect_from_port_20=YES使用標準的20埠來連接ftp # If you want, you can arrange for uploaded anonymous files to be owned by# a different user. Note! Using "root" for uploaded files is not# recommended!#chown_uploads=YES所有匿名上傳的文件的所屬用戶將會被更改成chown_username #chown_username=whoever 匿名上傳文件所屬用戶名 # You may override where the log file goes if you like. The default is shown# below.#xferlog_file=/var/log/vsftpd.log日誌文件位置 # If you want, you can have your log file in standard ftpd xferlog formatxferlog_std_format=YES使用標准格式 # You may change the default value for timing out an idle session.#idle_session_timeout=600空閑連接超時 # You may change the default value for timing out a data connection.#data_connection_timeout=120數據傳輸超時 # It is recommended that you define on your system a unique user which the# ftp server can use as a totally isolated and unprivileged user.#nopriv_user=ftpsecure當伺服器運行於最底層時使用的用戶名 # Enable this and the server will recognise asynchronous ABOR requests. Not# recommended for security (the code is non-trivial). Not enabling it,# however, may confuse older FTP clients.#async_abor_enable=YES允許使用\"async ABOR\"命令,一般不用,容易出問題 # By default the server will pretend to allow ASCII mode but in fact ignore# the request. Turn on the below options to have the server actually do ASCII# mangling on files when in ASCII mode.# Beware that on some FTP servers, ASCII support allows a denial of service# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd# predicted this attack and has always been safe, reporting the size of the# raw file.# ASCII mangling is a horrible feature of the protocol.#ascii_upload_enable=YES 管控是否可用ASCII 模式上傳。默認值為NO#ascii_download_enable=YES管控是否可用ASCII 模式下載。默認值為NO# You may fully customise the login banner string:#ftpd_banner=Welcome to blah FTP service. login時顯示歡迎信息.如果設置了banner_file則此設置無效 # You may specify a file of disallowed anonymous e-mail addresses. Apparently# useful for combatting certain DoS attacks.#deny_email_enable=YES 如果匿名用戶需要密碼,那麼使用banned_email_file裡面的電子郵件地址的用戶不能登錄# (default follows)#banned_email_file=/etc/vsftpd/banned_emails禁止使用匿名用戶登陸時作為密碼的電子郵件地址 # You may specify an explicit list of local users to chroot() to their home# directory. If chroot_local_user is YES, then this list becomes a list of# users to NOT chroot().#chroot_list_enable=YES如果啟動這項功能,則所有列在chroot_list_file中的使用者不能更改根目錄 # (default follows)#chroot_list_file=/etc/vsftpd/chroot_list定義不能更改用戶主目錄的文件 # You may activate the "-R" option to the builtin ls. This is disabled by# default to avoid remote users being able to cause excessive I/O on large# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume# the presence of the "-R" option, so there is a strong case for enabling it.#ls_recurse_enable=YES 是否能使用ls -R命令以防止浪費大量的伺服器資源 # When "listen" directive is enabled, vsftpd runs in standalone mode and# listens on IPv4 sockets. This directive cannot be used in conjunction# with the listen_ipv6 directive.listen=YES 綁定到listen_port指定的埠,既然都綁定了也就是每時都開著的,就是那個什麼standalone模式 # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6# sockets, you must run two copies of vsftpd whith two configuration files.# Make sure, that one of the listen options is commented !!#listen_ipv6=YESpam_service_name=vsftpd 定義PAM 所使用的名稱,預設為vsftpserlist_enable=YES 若啟用此選項,userlist_deny選項才被啟動 tcp_wrappers=YES 開啟tcp_wrappers支持

㈢ linux ftp伺服器不允許上傳

許可權問題吧,應該把ftp共享出來的目錄加上寫的許可權,一般是/var/ftp/pub
chmod
777
/var/ftp/pub
這樣應該就可以了

㈣ linux中vsftp無法上傳文件問題

你有沒有安裝SElinux?
如果安了你試試如下兩種方法:
方法1. 關閉selinux,目錄 /etc/selinux/config,將config裡面的SELINUX=enforcing 改為 SELINUX=disable
方法2.開啟禁用SElinux的FTP傳輸審核功能
getsebool -a | grep ftp 你先看哈
改: setsebool -P ftpd_disable_trans .
on也可以換成1,off為0哈

祝你好運!

㈤ linux vsftp匿名用戶不可以上傳怎麼解決

首先要把防火牆給關閉了,iptables
-F
service
iptables
save
&&
service
iptables
stop
第二
設置文件夾具有可寫許可權
/var/ftp/pub
許可權設置為chmod
o+w
/var/ftp/pub

㈥ vsftp在上傳文件時提示failed to change directory,點擊確定後不影響傳輸,是什麼原因啊如圖

提示說「許可權不夠」!
既要有FTP訪問許可權,又要有文件夾訪問許可權.兩許可權取其嚴格!

㈦ vsftp,客戶端上傳文件主機卡死

1、檢查磁碟空間大小,是否為磁碟占滿導致,use如果大於80%,系統性能下降
命令如下:df -h
2、網路連接中斷,在本地ping所連主機,看網路是否穩定
命令如下:ping 主機ip
3、檢查防火牆配置,如果為running,添加訪問埠,保存後重啟
命令如下:查看防火牆狀態:service iptables staus
修改防火牆配置:vi /etc/sysconfig/iptables
#允許遠程ssh
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
#允許FTP連接
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
重啟防火牆:service iptables restart

㈧ linux 網站目錄 的屬主是root 還是ftp用戶 ,如是root 那 許可權為755 ftp就不能上傳文件了 怎麼設置vsftpd

vsftpd要求ftp伺服器的根目錄必須是ftp用戶和ftp組,可以用如下命令修改屬主

chown -R ftp:ftp 目錄名

㈨ vsftp上傳中文文件夾報錯

打包後上傳呢,或者上傳一個英文文件如果可以說明是語言配置錯誤,一般在option中都有語言配置選項的,祝你好運

熱點內容
代碼分析演算法 發布:2024-10-09 00:47:11 瀏覽:160
晶元寫程序需要配置哪些文件 發布:2024-10-09 00:38:39 瀏覽:934
存儲儲存搬運 發布:2024-10-09 00:28:42 瀏覽:717
吃雞電腦適合什麼配置 發布:2024-10-09 00:18:24 瀏覽:228
java線程實例 發布:2024-10-09 00:05:34 瀏覽:193
文檔放在安卓手機哪裡 發布:2024-10-08 23:35:00 瀏覽:439
我的世界伺服器拔刀強化 發布:2024-10-08 22:59:37 瀏覽:430
伺服器換ip寶塔面板 發布:2024-10-08 22:58:56 瀏覽:433
如何通過伺服器搭建網站 發布:2024-10-08 22:58:54 瀏覽:240
賽爾編程 發布:2024-10-08 22:30:12 瀏覽:164