freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

用linux架設(shè)ftp服務(wù)器-預(yù)覽頁

2025-10-05 15:39 上一頁面

下一頁面
 

【正文】 e/ftp/dev/null” 文件: [rootdeep] mknod /home/ftp/dev/null c 1 3 [rootdeep] chmod 666 /home/ftp/dev/null 第六步 把 “group” 和 “passwd” 文件拷貝到 “/home/ftp/etc” 目錄下,然后再改變這兩個(gè)文件。這樣就沒有必要手工重新生成這些文件,或者用拷貝粘貼的方法把它們粘貼到配置文件中去。 配置 “/etc/ftpaccess” 文件 “/etc/ftpaccess” 文件是用來配置 “ftpd” 的。 創(chuàng)建 ftpaccess文件( touch /etc/ftpaccess),在文件中加入: class openarch guest .* limit openarch 20 MoTuWeTh,Fr00001800 /home/ftp/. loginfails 3 readme README* login readme README* cwd=* message /home/ftp/. login message .message cwd=* press yes all tar yes all chmod yes guest delete yes guest overwrite yes guest rename yes guest log mands real,guest log transfers real,guest inbound,outbound guestgroup ftpadmin guestgroup webmaster We don‘t want users being able to upload into these areas. upload /home/ftp/* / no upload /home/ftp/* /etc no upload /home/ftp/* /dev no We‘ll prevent downloads with noretrieve. noretrieve /home/ftp/etc noretrieve /home/ftp/dev log security real,guest guestroot /home/ftp ftpadmin webmaster restricteduid ftpadmin webmaster restrictedgid ftpadmin webmaster greeting terse Keepalive yes noretrieve .notar 現(xiàn)在把文件的權(quán)限設(shè)成 600: [rootdeep] chmod 600 /etc/ftpaccess 下面解釋配置文件中的設(shè)置: class “class” 用來定義一個(gè)允許訪問 ftp服務(wù)器的用戶類別。anonymous 用戶是用 anonymous 或 ftp 帳號(hào)訪問 ftp 服務(wù)器而且只需要訪問公用文件的那些用戶。 limit “l(fā)imit” 根據(jù) class和時(shí)間范圍來限制登錄 ftp服務(wù)器的用戶數(shù)。表示時(shí)間的小時(shí)和分鐘之間不要用冒號(hào)隔開。 loginfails “l(fā)oginfails” 設(shè)置最多允許的登錄失敗的次數(shù)。 < when>可以為下面兩種形式: LOGIN 或 CWD=< dir>。 message “message” 設(shè)置當(dāng)用戶登錄或轉(zhuǎn)到一個(gè)目錄的時(shí)候會(huì)收到什么消息。 例如: message /home/ftp/. LOGIN press、 tar、 chmod、 delete、 overwrite、 rename 如果這些都不設(shè)置,那么就使用默認(rèn)值,也就是對(duì)所有人都是 “yes” 。 例如:要記錄 real 和 guest用戶的每一個(gè)命令,可以這么表示: log mands real,guest 這些記錄都保存在 “/var/log/message” 文件中。 例如,用下面表示記錄所有 real 和 guest 用戶的 “inbound” 和 “outboun d” 方向的文件傳輸: log transfers real,guest inbound,outbound 這些記錄保存在 “/var/log/xferlog” 文件中。 “real”表示真正在 ftp 服務(wù)器上有帳號(hào)的用戶, “anonymous” 表示匿名用戶, “guest” 表示 guest 用戶。如果為用戶設(shè)置了 guestroot,那么該用戶的家目錄就在 “ < rootdir> /etc/passwd” 文件中設(shè)定,而“/etc/passwd” 文件中的設(shè)定是無效的。 例如: greeting terse keepalive < yes|no> 設(shè)置 socket的 TCP SO_KEEPALIVE 參數(shù)。 創(chuàng)建 “ftphosts” 文件( touch /etc/ftphosts),加入下面這幾行: Example host access file Everything after a ‘‘ is treated as ment, empty lines are ignored allow ftpadmin 把文件的權(quán)限改為 600: [rootdeep] chmod 600 /etc/ftphosts 每一行可能是: allow < username> < addrglob> 或 deny < username> < addrglob> “allow” 允許用戶用< username>用戶名,從< addrglob>地址訪問 ftp服務(wù)器。 配置 “/etc/ftpusers” 文件 “/etc/ftpusers” 文件設(shè)置哪些用戶不允許連接到 ftp服務(wù)器。 創(chuàng)建 “ftpd” 文件( touch /etc/)并加入: /var/log/xferlog { ftpd doesn‘t handle SIGHUP properly nopress } 配置 ftp 使其使用 id超級(jí)服務(wù)器(用于實(shí)現(xiàn) tcpwrappers) tcpwrappers 用來啟動(dòng)和中止 ftpd服務(wù)。 FTP 管理工具 ftpwho ftpwho 顯示當(dāng)前連接到 ftp 服務(wù)器上的所有用戶。下面是一個(gè)例子: [rootdeep] ftpcount Service class openarch 1 users ( 20 maximum) 保證 ftp服務(wù)器的安全 首先確保已經(jīng)創(chuàng)建了 “/etc/ftpusers” 文件,這個(gè)文件用來設(shè)置不允許哪些用戶登錄 ftp服務(wù)器,其中至少要包括: root、 bin、 daemon、 adm、 lp、 sync、 shutdown、 halt、 mail、 news、 uucp、operator、 games、 nobody以及所有 Linux發(fā)行商在系統(tǒng)中提供的默認(rèn)帳號(hào)。在我們配置的 ftp 服務(wù)器中為 “/home/ftp” 目錄下的“bin” 、 “etc” 、 “dev” 和 “l(fā)ib” 目錄。 noretrieve /home/ftp/etc noretrieve /home/ftp/dev noretrieve /home/ftp/bin (require only if you are not using the “ enablels” option) noretrieve /home/ftp/lib (require only if you are not using the “ enablels” option) “.notar” 文件 無論是否允許即時(shí)的目錄打包( onthefly tar),都必須保證用戶不能打包( tar)禁止上載
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1