ftp 530 linux,Linux启动ftp服务器530 Permission denied解决方法
重新在虛擬機(jī)下安裝了linux。現(xiàn)在我想啟動(dòng)linux自帶的ftp服務(wù)器:#service? vsftpd? start 。如果想linux啟動(dòng)是自動(dòng)啟動(dòng)ftp服務(wù)器:#chkconfig? vsftpd? on? 。
運(yùn)行putty,以root身份進(jìn)入,出現(xiàn)了報(bào)錯(cuò)? 530 Permission denied? ,感覺很奇怪,因以普通用戶是可以進(jìn)入的。
原因是我們 /etc/vsftpd/ftpusers? 和? /etc/vsftpd/user_list? 禁掉了root這個(gè)用戶。這時(shí)我們需要修改這兩個(gè)文件。
(1)/etc/vsftpd.user_list的默認(rèn)文件(則是表示具體用戶)
# 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
news
uucp
operator
games
nobody
這時(shí)我們要在 root 前加上 # 。
(2)/etc/vsftpd.ftpusers? 的默認(rèn)文件(所有可以登錄該FTP的用戶屬性)
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
news
uucp
operator
games
nobody
這時(shí)我們要在 root 前加上 # 。
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的ftp 530 linux,Linux启动ftp服务器530 Permission denied解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 数据结构与算法(6) -- heap
- 下一篇: Ubuntu18.04 Flutter开