Wu-FTP的疑問--Real or Guest?

顯示結果從第 1 筆 到 4 筆,共計 4 筆
  1. #1
    會員 Rico0123 的大頭照
    註冊日期
    2002-01-10
    討論區文章
    28

    Wu-FTP的疑問--Real or Guest?

    最近練習Wu-FTP時發現:只要是指名系統內已有的帳號為Guest(guestuser or guestgroup),這些登入的人就看不到資料夾內的任何檔案了(使用瀏覽器),上傳上來的檔案,經過"重新整理"也會不見!!(但實際上已傳至Server上的資料夾中),若取消Guestuser(或Guestgroup),這些帳號就可以正常看到檔案了,但這樣一來安全性就大打折扣了(因為是real了,我可不想他們在其他資料夾亂跑!)是不是ftpaccess哪裡的參數設錯了呢?



  2. #2
    會員 Rico0123 的大頭照
    註冊日期
    2002-01-10
    討論區文章
    28
    我已經自己找到答案了!原來是沒有建立與拷貝/bin裡頭該用到的檔案至Guest的預設目錄下(如ls,沒有他,對方當然看不到檔案了!因為根本"列"不出來∼)!由於很多教學文章甚至書籍都沒有提到這件事,請大家留意囉!

  3. #3
    進階會員 repsol 的大頭照
    註冊日期
    2001-06-17
    所在地區
    ADSL 2M/256
    討論區文章
    818
    原廠的文件 , 可以參考參考喔
    http://www.wu-ftpd.org/HOWTO/guest.HOWTO


    4. Build the contents of the ~/bin directory.


    NOTE WELL: if you cannot see the directory contents after you login
    as the guest user, the 'ls' program that you installed is not working.
    If you use an 'ls' linked for dynamic libraries, and you do not have
    the required libraries and/or devices installed properly in the guest
    tree, 'ls' will not work and you will not see the contents of the
    guest directory.

    This is the single most FAQ on the wu-ftpd list. Repeating: if you
    cannot see the contents of the directory, your installed 'ls' is not
    working. The proper installation procedures for 'ls' vary by operating
    system. There are some OS specific notes at the bottom of this howto
    that may be of help.

    Another problem that has been reported is that the chroot() directory
    given in your /etc/passwd file for the guest account must be to the
    directory where your ~/bin directory is located. That is, if your
    chroot directory is /u01/ftp/ftptest/ and your /etc/passwd account is

    yourftp:x:42:42:guest ftp account:/u01/ftp/./ftptest:/etc/ftponly

    it will not work, as the ~/bin directory is not under the chroot()ed
    directory. It must be set as follows.

    yourftp:x:42:42:guest ftp account:/u01/ftp/ftptest/./:/etc/ftponly

    There are additional resources to help if you still cannot see files
    after an FTP login. See the FAQ and resource center at
    http://www.wuftpd.org/ for more information.

    USE STATIC LINKED COPIES OF ALL UTILITIES IF POSSIBLE.

    You may get the source to build your own static 'ls' by downloading the
    GNU fileutils source package from <ftp://ftp.gnu.org/pub/gnu/>.


    cp /.../bin/ls bin
    chown root.bin bin/ls
    chmod 111 bin/ls

    Optional for on the fly compression and tar:

    cp /.../bin/gzip bin
    cp /.../bin/tar bin
    chown root.bin bin/gzip
    chown root.bin bin/tar
    chmod 111 bin/gzip
    chmod 111 bin/tar


    If the utilities are not static, create the necessary devices in ~/dev and
    copy the necessary libraries into ~/lib. Check the man page for ftpd that
    comes with your system; it may be of help.

    REGARDING HARD AND SOFT/SYMBOLIC LINKS:

    The chroot() obviates the use of soft links in this case. However, it
    it is possible to make these hard links back to the master copy of the
    utilities rather than copies. This can save some disk space if that is
    a concern.
    「遥か昔、正義に生きる悪魔の伝説があった。
    剣を取って戦い、悪魔の侵略を退けた魔剣士。
    その伝説も、やがて人々の記憶から消えて行った。

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

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

  4. #4
    會員 Rico0123 的大頭照
    註冊日期
    2002-01-10
    討論區文章
    28
    感謝喔~~~!

類似的主題

  1. 請教wu-ftp的問題
    作者:ricky_ai 所在討論版:-- FreeBSD & Linux 討 論 版
    回覆: 0
    最後發表: 2002-08-21, 10:27 AM
  2. ADSL上架ftp的疑問,512? 64?
    作者:edwalin 所在討論版:☉ -- 架 站 DIY 討 論 版
    回覆: 8
    最後發表: 2002-03-22, 10:57 PM
  3. 【問題】FTP上傳檔案續傳的疑問
    作者:gamecrazy 所在討論版:-- 網 路 軟 體 討 論 二 版 (網路其他軟體)
    回覆: 0
    最後發表: 2002-03-09, 09:22 PM
  4. 關於架設ftp站的疑問
    作者:Joe Lin 所在討論版:-- 網 路 技 術 版
    回覆: 4
    最後發表: 2001-11-19, 04:38 PM
  5. IP分享器後架設FTP的疑問
    作者:mtkao 所在討論版:-- Cable Modem 心 得 交 流 版
    回覆: 3
    最後發表: 2001-05-22, 01:16 AM

 

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

發表文章規則

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