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

正文內(nèi)容

用linux架設(shè)ftp服務(wù)器(存儲版)

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

下一頁面
  

【正文】 blels” option) upload /home/ftp/* /lib no (require only if you are not using the “ enablels” option) noretrieve 命令 最好禁止某些用戶從 “/home/ftp” 目錄下的某些子目錄中下載文件,可以用 “ noretrieve” 命令在 “/etc/ftpaccess” 文件中設(shè)置。 ftpcount ftpcount是 ftpwho 的簡化版,只顯示登錄到 ftp 服務(wù)器的用戶數(shù)以及最多允許多少個用戶登錄。 創(chuàng)建 “ftp” 文件( touch /etc/)并加入: % auth required /lib/security/ item=user sense=deny file=/etc/ftpusers onerr=succeed auth required /lib/security/ shadow nullok auth required /lib/security/ account required /lib/security/ session required /lib/security/ 配置 “/etc/” 文件 配置 “/etc/” 文件使得日志文件每周自動循環(huán)更新。最好設(shè)成 “yes” : Keepalive yes 配置 “/etc/ftphosts” 文件 “/etc/ftphosts” 文件為每一個用戶建立規(guī)則,指定允許用戶從某個主機(jī)登錄 ftp服 務(wù)器,或者不允許用戶從某個主機(jī)登錄 ftp 服務(wù)器。在一行里可以有多個 uid地范圍。< direction>也是用逗號隔開的字串,設(shè)置需要記錄的文件傳輸?shù)姆较?,可以選擇的兩個傳輸方向是 “inbound” (向內(nèi))和 “outbound” (向外)。 還需要注意的是消息文件的路徑名也是相對于匿名 ftp 目錄的。 這個命令的格式為: readme < path> < when> < path>是用來提醒用戶的文件的名字(例如: README),< when>設(shè)置出現(xiàn)這個提示信息的條件。星期一到星期日分別用 Mo、 Tu、 We、Th、 Fr、 Sa 和 Su表示,周末也可以用 Wk 表示。 < typelist>中的項(xiàng)是用逗號隔開的,每一個項(xiàng)有三種可能的取值: anonymous、 guest 或 real。 為了運(yùn)行 FTP 服務(wù)器,必須創(chuàng)建或者把下面的文件拷貝到相應(yīng)的目錄下: 把 “ftpaccess” 文件拷貝到 “/etc” 目錄下 把 “ftpusers” 文件拷貝到 “/etc” 目錄下 把 “ftphosts” 文件拷貝到 “/etc” 目錄下 把 “ftpgroups” 文件拷貝到 “/etc” 目錄下 把 “ftpconversion” 文件拷貝到 “/etc” 目錄下 把 “ftp” 文件拷貝到 “/etc/” 目錄下 把 “ftp d” 文件拷貝到 “/etc/” 目錄下 可以把 “” 解壓之后,找到上面列出來的文件,并拷貝到相應(yīng)的目錄下,或者用拷貝粘貼的方法從本書中直接粘貼出。 [rootdeep] cp /bin/ls /home/ftp/bin (require only if you are not using the “ enablels” option) [rootdeep] chmod 0111 /bin/ls /home/ftp/bin/ls (require only if you are not using the “ enablels” option) 第四步 找到 “l(fā)s” 程序所需的共享庫: [rootdeep] ldd /bin/ls (require only if you are not using the “ enablels” option ) => /lib/ (0x00125000) /lib/ => /lib/ (0x00110000) 把共享庫拷貝到 “/home/ftp/lib” 目錄下: [rootdeep] cp /lib/ /home/ftp/lib/ (require only if you are not using the “ enablels” option) [rootdeep] cp /lib/ /home/ftp/lib/ (require only if you are not using the “ enablels” option) 注意:如果想用 Linux 的 “l(fā)s” 程序而不是用 WUftpd 自帶的 “l(fā)s” (編譯時加上 “ enablels” 參數(shù)),才需要第三和第四步。“/dev/null” 這個空 shell 不允許 “ftpadmin” 像正常用戶那樣登錄。 [rootdeep] mkdir /home/ftp [rootdeep] useradd d /home/ftp/ftpadmin/ s /dev/null ftpadmin > /dev/null 2> amp。接著,我們 為 “” 二進(jìn)制文件創(chuàng)建符號鏈接。 源路徑都為 “/var/tmp” (當(dāng)然在實(shí)際情況中也可以用其它路徑)。 有很多配置 FTP 服務(wù)器的不同方法。 另一種是把 FTP 服務(wù)器配置成匿名服務(wù)器。 wuftp 的版本號是 。 為 FTP站點(diǎn)的用戶建立沒有 shell的帳號 首先,創(chuàng)建一個新的用戶,這 個用戶被允許連接到 ftp 服務(wù)器上。 [rootdeep] vi /etc/shells /bin/bash /bin/sh /bin/ash /bin/bsh /bin/tcsh /bin/csh /dev/null ? This is our added no existent shell 第三步 現(xiàn)在編輯 “/etc/passwd” 文件,手工加上 “/./” 把 “/home/ftp” 目錄和 “/ftpadmin” 目錄分開,用戶 “ftpadmin” 會自動轉(zhuǎn)到( chdir) “/ftpadming ” 目錄下。當(dāng)用戶登錄的時候, Unix 就可以改變根文件系統(tǒng)( chroot)。這對于改變根文件系統(tǒng)的環(huán)境很重要,改變之后的 “passwd” 文件會是象下面這樣的: root:x:0:0:root:/:/dev/null ftpadmin:x:502:502::/ftpadmin/:/dev/null 編輯 “group” 文件( vi /home/ftp/etc/group),把除了 “root” 和允許使用 ftp 的用戶之外的所有其它項(xiàng)刪掉。配置文件的每一行或者定義一個屬性或者設(shè)定一個屬性值。 real 用戶必須在 FTP 服務(wù)器上有帳號,而且需要經(jīng)過服務(wù)器的安全驗(yàn)證 < addrglob>可以用通配符,例如: “*” 表示所有的站點(diǎn)。 例如,限制 “openarch” 這個類別,最多可以有 20 個用戶,訪問時間是星期一道星期四全天,星期五從半夜到下午六點(diǎn)。如果為 CWD=< dir>,當(dāng)用戶進(jìn)入< dir>目錄的時候就會有提示信息。 例如: press yes all tar yes all chmod yes guest delete yes guest overwrite yes guest rename yes guest log mands 因?yàn)榘踩系脑蛐枰涗浻?戶使用的每一個命令。 例如: guestgroup ftpadmin guestgroup webmaster log security 用來設(shè)置記錄 real、 guest或 anonymous用戶違反安全規(guī)則的行為。 greeting 設(shè)置用戶登錄時候的歡迎信息。 “deny” 禁止用戶名為< username>的
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1