Centos 6.2中vsftpd虛擬使用者的配置

來源:互聯網
上載者:User

vsftpd 是“very secure FTP daemon”的縮寫,安全性是它的一個最大的特點。vsftpd 是一個 UNIX 類作業系統上啟動並執行伺服器的名字,它可以運行在諸如 Linux、BSD、Solaris、 HP-UNIX等系統上面,是一個完全免費的、開發原始碼的ftp伺服器軟體,支援很多其他的 FTP 伺服器所不支援的特徵。比如:非常高的安全性需求、頻寬節流設定、良好的延展性、可建立虛擬使用者、支援IPv6、速率高等。

之前就有弄過vsftpd,就不再介紹了!

安裝:

[root@chenyi ~]# mount /dev/cdrom /media          #掛載鏡像 省去yum源的配置

[root@chenyi ~]# yum install vsftpd                                    #yum安裝vsftpd

[root@chenyi ~]# mv /etc/vsftpd/vsftpd.conf /etc/vsftpd/@vsftpd.conf.bak         #備份原始設定檔,以供日後的參照及使用

[root@chenyi ~]# vi /etc/vsftpd/vsftpd.conf                     #建立vsftpd.conf

內容如下:

listen=YESbackground=YESanonymous_enable=NOlocal_enable=YESwrite_enable=YESlocal_umask=022anon_upload_enable=NOanon_mkdir_write_enable=NOdirmessage_enable=YESxferlog_enable=YESconnect_from_port_20=YESchown_uploads=NOxferlog_file=/var/log/vsftpd.logxferlog_std_format=YESasync_abor_enable=YESascii_upload_enable=YESascii_download_enable=YESftpd_banner=Welcome to Nanu FTP serverpam_service_name=vsftpdchroot_local_user=NOchroot_list_enable=YESchroot_list_file=/etc/vsftpd/vsftpd.chroot_listguest_enable=YESguest_username=chenyinopriv_user=chenyiuser_config_dir=/etc/vsftpd/user_configmax_clients=100max_per_ip=20

建立chroot虛擬使用者對應檔

[root@chenyi ~]# cat /etc/vsftpd/vsftpd.chroot_list

chenyi                #該檔案為手動建立,每一行代表一個欲將虛擬使用者映射到本地賬戶的名稱

建立使用者賬戶檔案

[root@chenyi ~]# cat /etc/vsftpd/passwd.file

chenchen          #該檔案預設也不存在的,該檔案用來儲存使用者賬戶以及純文字密碼,格式為每個賬戶兩行,第一行是使用者名稱,第二行是密碼,以此類推!

123

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.