Wu-FTP的疑問--Real or Guest? - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

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

回覆
會員

我已經自己找到答案了!原來是沒有建立與拷貝/bin裡頭該用到的檔案至Guest的預設目錄下(如ls,沒有他,對方當然看不到檔案了!因為根本"列"不出來∼)!由於很多教學文章甚至書籍都沒有提到這件事,請大家留意囉!
回覆
進階會員

原廠的文件 , 可以參考參考喔
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.
回覆
會員

感謝喔~~~!

回覆


類似的主題
主題 主題作者 討論版 回覆 最後發表
guest 帳戶自動被啟用 b90220208 -- HELP ME 電 腦 軟 硬 體 急 救 版 5 2008-06-15 08:08 PM
關於 guest 與 everyone 兩個帳戶在共用或者安全性的權限設定中...各在何種情況才需新增上去? b90220208 -- Windows 討 論 版 0 2008-03-19 11:51 PM
Jason Wu 君送來的自製天線參考網址 山賊 -- 無 線 網 路 版 9 2002-12-30 04:52 AM
linux wu-ftp timeout close by remote tom5938 -- FreeBSD & Linux 討 論 版 2 2002-02-12 03:07 AM
裝 WU-FTP 但系統找不它的資訊 levin -- FreeBSD & Linux 討 論 版 8 2002-01-01 10:02 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。