Pro-FTP 要如何設定USER只能下載不能上傳呢?【求助】

顯示結果從第 1 筆 到 4 筆,共計 4 筆
  1. #1
    美麗與智慧並重英 bigmichael 的大頭照
    註冊日期
    2001-07-20
    所在地區
    ADSL 2M/256
    討論區文章
    374

    Pro-FTP 要如何設定USER只能下載不能上傳呢?【求助】


    我的Pro-FTP版本是proftpd-1.2.5
    我的以下是我的proftpd.conf的設定檔內容


    [root@linux root]# vi /usr/local/etc/proftpd.conf

    # This is a basic ProFTPD configuration file (rename it to
    # 'proftpd.conf' for actual use. It establishes a single server
    # and a single anonymous login. It assumes that you have a user/group
    # "nobody" and "ftp" for normal operation and anon.

    ServerName "ProFTPD Default Installation"
    ServerType inetd
    DefaultServer on

    # Port 21 is the standard FTP port.
    Port 21
    # Umask 022 is a good standard umask to prevent new dirs and files
    # from being group and world writable.
    Umask 022

    # To prevent DoS attacks, set the maximum number of child processes
    # to 30. If you need to allow more than 30 concurrent connections
    # at once, simply increase this value. Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd)
    MaxInstances 30

    # Set the user and group that the server normally runs at.
    User nobody
    Group nobody

    # Normally, we want files to be overwriteable.
    <Directory /*>
    AllowOverwrite on
    </Directory>

    # A basic anonymous configuration, no upload directories.
    <Anonymous ~ftp>
    User ftp
    Group ftp
    # We want clients to be able to login with "anonymous" as well as "ftp"
    UserAlias anonymous ftp

    # Limit the maximum number of anonymous logins
    MaxClients 10

    # We want 'welcome.msg' displayed at login, and '.message' displayed
    # in each newly chdired directory.
    DisplayLogin welcome.msg
    DisplayFirstChdir .message

    # Limit WRITE everywhere in the anonymous chroot
    <Limit WRITE>
    DenyAll
    </Limit>

    </Anonymous>


    我建個test的帳號
    [root@linux home]# ll
    drwx------ 3 test test 4096 May 18 10:49 test


    這個test帳號登入時權限是全開的,可上傳也可下載。
    我有試著改成
    dr-x------ 3 test test 4096 May 18 10:49 test
    一樣是可上傳也可下載。
    我再試著改成
    dr-------- 3 test test 4096 May 18 10:49 test
    完全無法登入



    我猜是要改proftpd.conf這個設定檔內容的
    <Directory /*>
    AllowOverwrite on
    </Directory>


    可是不知要如何改才能讓,某些帳號權限全,開可上傳也可下載。
    又某些帳號只能下載不能上傳呢?

    有哪位大大知道可以告訴我嗎?
    謝謝啦!




  2. #2
    進階會員 repsol 的大頭照
    註冊日期
    2001-06-17
    所在地區
    ADSL 2M/256
    討論區文章
    818
    1.目錄一定要有x的權限,才可以進入(root 例外)。你自己先試試看,不行再問。

    2.建議你看看這邊所寫的
    http://www.proftpd.org/docs/directiv...ref_Limit.html
    http://www.proftpd.org/docs/directiv..._DenyUser.html


    上面已經寫的很清楚了,不難。

    靈活交叉運用即可!!

    貼個自己的範例給你看,不要照抄,因為這應該不是你的需求。
    建議你先弄懂上面網址的意義。

    語法:
    <Directory /home/somebody>
            <Limit WRITE>
            DenyUser somebody
            </Limit>
            <Limit READ>
            DenyUser somebody
            </Limit>
            <Limit CWD>
            DenyUser somebody
            </Limit>
    </Directory>
    「遥か昔、正義に生きる悪魔の伝説があった。
    剣を取って戦い、悪魔の侵略を退けた魔剣士。
    その伝説も、やがて人々の記憶から消えて行った。

    だが2000年の時を経て、魔界はより強大になって甦る。
    圧倒的なパワーで押し寄せる魔界の軍勢。
    本格的な人間界侵攻が始まった…。

    再び訪れた人類の危機に一人の男が立ち上がる。
    伝説の魔剣士の血を引く悪魔狩人(デビルハンター)、その名はダンテ!」

  3. #3
    會員 achilles 的大頭照
    註冊日期
    2002-04-17
    討論區文章
    90
    此文章於 2007-02-25 01:49 AM 被 achilles 編輯。

  4. #4
    美麗與智慧並重英 bigmichael 的大頭照
    註冊日期
    2001-07-20
    所在地區
    ADSL 2M/256
    討論區文章
    374
    最初由 achilles 發表
    請參考 http://www.dreamer.cc/xoops/modules/...php?storyid=20
    感謝各位大大的指導! :jocky: :jocky: :jocky: :jocky:

類似的主題

  1. 【求助】CesarFTP可下載不能上傳
    作者:Albertpc 所在討論版:☉ -- 架 站 DIY 討 論 版
    回覆: 0
    最後發表: 2005-03-25, 03:41 PM
  2. 請問公司電腦的usb被鎖住只能上傳不能下載
    作者:hyacinch 所在討論版:-- 電 腦 硬 體 討 論 版
    回覆: 26
    最後發表: 2005-01-01, 03:02 PM
  3. 如何限制使用者只能上網不能下載檔案?
    作者:jerrychu 所在討論版:-- 網 路 技 術 版
    回覆: 5
    最後發表: 2002-01-29, 11:40 AM
  4. Client端只能下載不能上傳?
    作者:jenming 所在討論版:---- ADSL 軟 硬 體 技 術
    回覆: 1
    最後發表: 2001-08-21, 12:37 PM
  5. OUTLOOK只能下載無法上傳???
    作者:young 所在討論版:-- 網 路 軟 體 討 論 一 版 (Browser,Email
    回覆: 3
    最後發表: 2001-08-16, 12:40 PM

 

此網頁沒有從搜尋引擎而來的訪客

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •