精華區beta FreeBSD 關於我們 聯絡資訊
※ 引述《[email protected] (阿里安)》之銘言: > /etc/inetd.conf > 在4.7裡 > ftp stream tcp nowait root /usr/libexec/lukemftpd ftpd -l -r > 在4.62裡 > ftp stream tcp nowait root /usr/libexec/lukemftpd ftpd -l > 只差 -r > 不管在 4.7或 4.62中,經由 cutftp,不但可看到他人目錄,且也可以下載。 > 請問: > 我該如何設定只看自己的,他人的不能看? > (以前在此新聞群組中曾看過類似問題,但如今找不到了) > > 編輯一下你/etc/inetd.conf > > 把 > > #ftp stream tcp nowait root /usr/libexec/ftpd ftpd > > 把這行的#去掉 > > 然後 kill -1 `cat /var/run/inetd/pid` 我是改裝Proftp 安裝proftpd安裝路徑/usr/local/libexec/proftpd [start|shutdown],設定檔/usr/local/etc/proftpd.conf server#pkg_add -v proftpd-1.2.4.tgz 出現下列訊息 ### As of proftpd 1.2.0rc3 and later, you need to edit /etc/pam.conf to add support for ftp. To do so, add the following three lines to this file: ftp auth required pam_unix.so try_first_pass ftp account required pam_unix.so try_first_pass ftp session required pam_permit.so ### 編輯/etc/pam.conf,加入上列字樣。 編輯加入/usr/local/etc/proftpd.conf ---------------------------- # Port 21 is the standard FTP port.變更port以免與原來的ftp衝突 Port 24 #讓root可透過ftp登入 RootLogin on #除了wheel群組外,其餘的使用者均只看得到自己的根目錄,無法再上進。 DefaultRoot ~ !wheel ee /etc/rc.local 加入 /usr/local/libexec/proftpd& -- □ Origin: 風 之 谷 bbs.ee.ncku.edu.tw □ From: 203.71.221.49