乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Linux 配置VSFTP

       Long_way 2007-05-24
      vsftp的含義就是Very Security Ftp,下面就簡(jiǎn)要的說一下它的配置和使用方法,通過本文的介紹也希望您能了解在Linux下配置一個(gè)網(wǎng)絡(luò)服務(wù)的基本過程

        1.相關(guān)配置文件

        /etc目錄下的vsftpd.conf,vsftpd.ftpuser,vsftpd.user_list,/etc/xinetd.d/vsftpd

        2.配置vsftp

        主要是修改/etc/vsftpd.conf就可以了,相關(guān)參數(shù)如下:

        anonymous_enable=YES 是否允許匿名ftp,如否則選擇NOlocal_enable=YES 是否允許本地用戶登錄

        local_umask=022 默認(rèn)的umask碼

        anon_upload_enable=YES 是否允許匿名ftp用戶訪問

        anon_upload_enable=YES 是否允許匿名上傳文件

        anon_mkdir_write_enable=YES 是否允許匿名用戶有創(chuàng)建目錄的權(quán)利

        dirmessage_enable=YES 是否顯示目錄說明文件,默認(rèn)是YES但需要收工創(chuàng)建.message文件

        xferlog_enable=YES 是否記錄ftp傳輸過程

        connect_from_port_20=YES 是否確信端口傳輸來自20(ftp-data)

        chown_upload=YES

        chown_username=username 是否改變上傳文件的屬主,如果是需要輸入一個(gè)系統(tǒng)用戶名,你可以把上傳的文件都改成root屬主

        xferlog_file=/var/log/vsftpd.log ftp傳輸日志的路徑和名字默認(rèn)是/var/log/vsftpd.log

        xferlog_std_format=YES 是否使用標(biāo)準(zhǔn)的ftp xferlog模式

        idle_session_timeout=600 設(shè)置默認(rèn)的斷開不活躍session的時(shí)間

        data_connection_timeout=120 設(shè)置數(shù)據(jù)傳輸超時(shí)時(shí)間

        nopriv_user=ftpsecure 運(yùn)行vsftpd需要的非特權(quán)系統(tǒng)用戶默認(rèn)是nobody

        async_abor_enable=YES 是否允許運(yùn)行特殊的ftp命令async ABOR.這里我翻譯的不爽,原文如下:   When enabled, a special FTP command known as "async ABOR" will be enabled. Only ill advised FTP clients w

      ill use this feature.Addtionally, this feature is awkward to handle, so it is dis-abled by default. Unfortunately, some FTP clients will hang when cancelling a transfer unless this feature is available, so you may wish to enable it.

        ascii_upload_enable=YES

        ascii_download_enable=YES 是否使用ascii碼方式上傳和下載文件

        ftpd_banner=Welcome to chenlf FTP service. 定制歡迎信息
      deny_email_enable=YES

        banned_email_file=/etc/vsftpd.banned_emails 是否允許禁止匿名用戶使用某些郵件地址,如果是輸入禁止的郵件地址的路徑和文件名

        chroot_list_enable=YES

        chroot_list_file=/etc/vsftpd.chroot_list 是否將系統(tǒng)用戶限止在自己的home目錄下,如果選擇了yes那么chroot_list_file=/etc/vsftpd.chroot_list中列出的是不chroot的用戶的列表

        max_clients=Number 如果以standalone模式起動(dòng),那么只有$Number個(gè)用戶可以連接,其他的用戶將得到錯(cuò)誤信息,默認(rèn)是0不限止

        message_file 設(shè)置訪問一個(gè)目錄時(shí)獲得的目錄信息文件的文件名,默認(rèn)是.message

        沒發(fā)現(xiàn)有限止帶寬的地方,如果誰知道請(qǐng)告訴我,詳細(xì)的幫助說明請(qǐng)參考man vsftpd.conf

        3 配置實(shí)例

        以下是我的配置文件.允許匿名FTP,允許上傳,chroot用戶目錄,上傳文件屬主改為root

        anonymous_enable=YES

        local_enable=YES

        write_enable=YES

        local_umask=022

        anon_upload_enable=YES

        anon_mkdir_write_enable=YES

        dirmessage_enable=YES

        xferlog_enable=YES

        connect_from_port_20=YES

        chown_uploads=YES

        chown_username=root

        xferlog_file=/var/log/vsftpd.log

        xferlog_std_format=YES

        pam_service_name=vsftpd

        chroot_local_user=YES

        4 起動(dòng)服務(wù)

        vsftpd和wu-ftpd不能同時(shí)起動(dòng),所以修改/etc/xinetd.d/wu-ftpd將disable設(shè)置為yes,然后修改/etc/vsftpd將disable設(shè)置為NO

        執(zhí)行/etc/initd.d/xinetd restart

        就可以了.好了,現(xiàn)在我們就建了一個(gè)所謂的非常安全的ftp服務(wù)器了,大家試試吧

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多