背景
本教程主要涉及/etc(或者/etc/vsftpd下)路徑下vsftpd.conf、vsftpd.ftpusers、vsftpd.user_list檔案,簡易配置ftp,讓使用者可以快速使用root用戶可以登錄設備ftp進行檔案操作即可,如果有詳細配置vsftpd可以后期補充,
配置步驟
1.修改vsftpd.conf組態檔:配置ftp根目錄為/
vi vsftpd.conf
在檔案末尾添加:
#
local_root=/
2.釋放root,使用戶可以使用root用戶登錄(使用#注釋掉root即可,默認是禁止的)
vi vsftpd.ftpusers
#root
vi vsftpd.user_list
#root
3.設定root用戶密碼(例如:root)
root@localhost:/test# passwd root
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Bad password: too short.
Warning: weak password (enter it again to use it anyway).
New password:
Re-enter new password:
passwd: password changed.
root@localhost:/test#
4.重啟vsftpd服務
systemctl restart vsftpd
5.使用ftp軟體登錄設備ftp驗證:ok~

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/397540.html
標籤:其他
上一篇:CephFS權限管理
