• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • Linux下的vsftpd配置詳解

    發表于:2007-07-04來源:作者:點擊數: 標簽:
    Linux下的vsftpd配置詳解 配置環境:Redhat Linux AS 3 + Vsftpd 主要是配置有ftpadmin(管理員),ftpupload(上傳,下載,瀏覽),ftpdownload(下載,瀏覽)這幾個用戶。 軟件在安裝AS3時默認給安裝了。 1.建立配置文件: #cat ! /etc/vsftpd/logins.txt ftpadmin -

    Linux下的vsftpd配置詳解

    配置環境:Redhat Linux AS 3 + Vsftpd

    主要是配置有ftpadmin(管理員),ftpupload(上傳,下載,瀏覽),ftpdownload(下載,瀏覽)這幾個用戶。

    軟件在安裝AS3時默認給安裝了。

    1.建立配置文件:

    #cat <<! >/etc/vsftpd/logins.txt

    >ftpadmin      ----------用戶名

    >ftpadmin      ----------密碼

    >ftpupload

    >ftpupload

    >ftpdownload

    >ftpdownload

    2,生成口令文件

    #db_load -T -t hash -f /etc/vsftpd/logins.txt   /etc/vsftpd/vsftpd_login.db      

    #chmod 600 /etc/vsftpd/vsftpd_login.db

    3,建立認證文件

    #vi /etc/pam.d/vsftpd.vu

    auth required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login

    account required /lib/security/pam_userdb.so db=/etc/vsftpd/vsftpd_login

    #wq

    4,建立用戶目錄及權限        

    #useradd -d /home/ftpsite virtual

    #chmod 700 /home/ftpsite

    5,修改配置文件/etc/vsftpd/vsftpd.conf

    Linten=YES

    anonmous_enable=YES

    local_enable=YES

    write_enable=NO

    anon_upload_enable=NO

    anon_mkdir_write_enable=NO

    anon_other_wirte_enable=NO

    one_process_model=NO

    chroot_local_user=YES

    guest_enable=YES

    guest_username=virtual

    pam_service_name=vsftpd.vu

    #wq

    重啟vsftpd服務

    #service vsftpd restart

    6,對各個用戶權限的設定

    編輯/etc/vsftpd/vsftpd.conf, 添加user_config_dir選項

    user_config_dir=/etc/vsftpd/vsftpd_user_conf

    保存文件

    #mkdir /etc/vsftpd/vsftpd_user_conf

    #echo <<!  > /etc/vsftpd/vsftpd_user_conf/ftpadmin

    >anon_world_readable_only=NO

    >write_enable=YES

    >anon_upload_enable=YES

    >anon_mkdir_write_enable=YES

    >anon_other_write_enable=YES

    >!

    #echo <<!  > /etc/vsftpd/vsftpd_user_conf/ftpupload

    >anon_world_readable_only=NO

    >write_enable=YES

    >anon_upload_enable=YES

    >!

    #echo <<!  > /etc/vsftpd/vsftpd_user_conf/ftpdownload

    >anon_world_readable_only=NO

    >!

    然后重啟vsftpd服務即可

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>