當前位置:首頁 » 文件管理 » linux下ftp重啟失敗

linux下ftp重啟失敗

發布時間: 2023-04-22 12:32:39

A. linuxftp連接530錯誤的解決方法

首先,如果正在使用vsftpd,可以先把其停掉,命令:service vsftpd stop,接下來需要編輯/etc/xinetd.d/下的`gssftp配置文件,文件內容如下:

# default: off

# description: The kerberized FTP server accepts FTP connections

# that can be authenticated with Kerberos 5.

service ftp

{

disable = yes

flags = REUSE

socket_type = stream

wait = no

user = root

server = /usr/kerberos/sbin/ftpd

server_args = -l -a

log_on_failure += USERID

}

在文件中,我們要修改的內容有:

1、disable = yes 改為 disable =no ,系統默認ftp功能是無效的,修改使ftp功能生效。

2、server_args = -l -a 改為 server_args = -l。

without -a means : *enable weak authentication*

其中表示使用Kerberos 5驗證機制,而一般的ftp是不支持該驗證機制的。

修改完畢後,將其保存。

3、重啟啟動xinetd服務。請執行一下的命令(/etc/xinetd.d/):

service xinetd restart

service vsftpd restart

B. 為什麼我Linux系統下的FTP老是啟動失敗,我是在/etc/vsftpd.user_ist,/etc/vsftpd.ftpusers這倆個文件中

在/var/log 下找找ftp啟動的日誌吧。看看日誌里報什麼好絕帶錯友蘆。針對報宏余錯去解決問題。

C. linux ftp顯示已經安裝 但是啟動不了服務

1.安裝vsftp

yum -y install vsftpd
chkconfig --level 35 vsftpd on
/etc/init.d/vsftpd start


2.然後添加個用戶及本地下載個ftp軟體測試下

useradd ftptest

passwd ftptest


filezilla下載安裝

D. linux ftp突然訪問不了了,重啟出現如下信息,然後ftp仍然訪問不了,求教大神啊

service xinetd stop
service vsftpd restart

E. linux ftp開啟失敗

看一下日誌 /var/log/xferlog 、/var/log/messages
看埠用 netstat -an|grep LISTEN|grep 21
另外不要讓ftp用22埠,這是sshd用的

F. Linux下ftp沒反應,也不報錯,就是連不上

長時間沒反應表示超時沒有連上。
到192.168.1.230上去看一下21埠是否處於正常監聽狀態
netstat -anp | grep 21

G. Linux啟動ftp伺服器530 Permission denied解決方法

新在虛擬機下安裝了linux。現在我想啟動linux自帶的ftp伺服器:#service  vsftpd  start 。如果想linux啟動是自動啟動ftp伺服器:#chkconfig  vsftpd  on  。

運行putty,以root身份進入,出現了報錯  530 Permission denied  ,感覺很奇怪,因以普通用戶是可以進入的。

原因是我們 /etc/vsftpd/ftpusers  和  /etc/vsftpd/user_list  禁掉了root這個用戶。這時我們需要修改這兩個文件。

(1)/etc/vsftpd.user_list的默認文件(則是表示具體用戶)

# vsftpd userlist

# If userlist_deny=NO, only allow users in this file

# If userlist_deny=YES (default), never allow users in this file, and

# do not even prompt for a password.

# Note that the default vsftpd pam config also checks /etc/vsftpd.ftpusers

# for users that are denied.

root

bin

daemon

adm

lp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

這時我們要在 root 前加上 # 。

(2)/etc/vsftpd.ftpusers  的默認文件(所有可以登錄該FTP的用戶屬性)

# Users that are not allowed to login via ftp

root

bin

daemon

adm

lp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

這時我們要在 root 前加上 # 

擬機裝好RedHat後,准備使用filezilla連接,輸入IP地址,root用戶,密碼,快速連接,報錯:

530 Permission denied。

故障排除:

1.首先檢查系統是否開啟了vsftp服務,如果沒有開啟,先開啟該服務。

方法1.setup--系統服務--自啟動服務

方法2.界面設置,service vsftpd restart

2.查看配置

vsftpd的配置,配置文件中限定了vsftpd用戶連接控制配置。

vsftpd.ftpusers:位於/etc目錄下。它指定了哪些用戶賬戶不能訪問FTP伺服器,例如root等。

vsftpd.user_list:位於/etc目錄下。該文件里的用戶賬戶在默認情況下也不能訪問FTP伺服器,僅當vsftpd .conf配置文件里啟用userlist_enable=NO選項時才允許訪問。

vsftpd.conf:位於/etc/vsftpd目錄下。來自定義用戶登錄控制、用戶許可權控制、超時設置、伺服器功能選項、伺服器性能選項、伺服器響應消息等FTP伺服器的配置。

3.配置修改完成後,執行service vsftpd restart重啟vsftpd服務。

熱點內容
廣數g96編程實例 發布:2025-05-14 01:01:56 瀏覽:910
安卓手機如何做一個小程序 發布:2025-05-14 01:01:51 瀏覽:968
linux怎麼訪問外網 發布:2025-05-14 01:00:24 瀏覽:952
玩dnf什麼配置不卡卡 發布:2025-05-14 00:57:02 瀏覽:806
android優秀項目源碼 發布:2025-05-14 00:54:58 瀏覽:205
dell伺服器怎麼裝系統 發布:2025-05-14 00:50:52 瀏覽:593
csgo怎麼進日本伺服器 發布:2025-05-14 00:39:18 瀏覽:747
ip查伺服器商家 發布:2025-05-14 00:33:37 瀏覽:212
雲伺服器布 發布:2025-05-14 00:27:55 瀏覽:78
吃雞最佳配置怎麼看 發布:2025-05-14 00:25:32 瀏覽:226