用vsftp自架Linux網絡安裝服務器

發表于:2007-05-26來源:作者:點擊數: 標簽:
用vsftp自架 Linux 網絡 安裝 服務器 ,以及Redhat局域網安裝的解決辦法 約定: 1。本帖操作環境是Redhat 9.0,VSFTPD的版本是Redhat 9.0所帶的vsftpd-1.1.3-8.i386.rpm,在安裝盤的第三張中 2。VSFTPD實現的最基本的目的:用系統中存在的真實用戶能登入FTP,
用vsftp自架Linux網絡安裝服務器,以及Redhat局域網安裝的解決辦法

約定: 1。本帖操作環境是Redhat 9.0,VSFTPD的版本是Redhat 9.0所帶的vsftpd-1.1.3-8.i386.rpm,在安裝盤的第三張中 2。VSFTPD實現的最基本的目的:用系統中存在的真實用戶能登入FTP,能用匿名訪問。 3。服務器的IP和和DNS設定 第一塊網卡 IP:192.168.0.1 子掩碼:255.255.255.0 網關不設置: 第二塊網卡: IP:192.168.0.2 子掩碼:255.255.255.0 網關不設置 因為我的操作環境是一個小型的局域網,所以其它的機器的IP都是在192.168.0這個網段上。ADSL是接在服務器的第一個網卡上。服務器的第二個網卡是接集線器,其它的客戶機都是接在集線器上。為了能讓ADSL訪問internet,因為自己手動設置了IP,所以DNS也要自己來設置,DNS如下: 202.96.134.133 202.96.168.68 設置工具是: [root@linuxsir001 root]# redhat-config-network 一。用VSFTP來架設FTP服務器,VSFTP服務器是目前最好的FTP服務器軟件,優點是體積小,可定制強,效率高 1。查看是否安裝了vsftpd軟件 [root@linuxsir001 root]# rpm -qa | grep vsftpd 如果沒有任何顯示,說明沒有把vsftpd安裝上,如果出現的是下面的這樣的提示,就證明已經安裝上了。 [root@linuxsir001 root]# rpm -qa | grep vsftpd vsftpd-1.1.3-8 我以Redhat 9.0,以其自帶的vsftpd包vsftpd-1.1.3-8版本來為本帖約定。 [root@linuxsir001 root]# rpm -ivh vsftpd*.rpm 2。打開VSFTP服務器。 [root@linuxsir001 root]# ntsysv 把vsftpd服務器打開,也就是在運行 ntsysv命令后,把vsftpd服務選中。 [*] vsftpd 3。運行/etc/init.d/vsftpd start [root@linuxsir001 root]# /etc/init.d/vsftpd start 為 vsftpd 啟動 vsftpd: [ 確定 ] [root@linuxsir001 root]# 4。配制VSFTP,FVSFTP的運行有兩種模式,一種是stardard "initd模式,另外一種是xinetd模式,上面我們所說的就是stardard initd運行模式。兩種模式運行機制不是相同的,stardard initd模式,適合專業FTP,且FTP總是一直有人訪問,占用資源也是比較大,如果您的FTP總是有人訪問和登入。就要用這種模式。如果您的FTP訪問人數比較小,建議您用xinetd模式。xinetd模式,是當用戶請求時,vsftpd才會啟動。 不同的環境,當然得用不同的啟動模式。 如果想了解更多的,請在本帖后面跟帖,我會慢慢補充xinetd模式,以及虛擬用戶如何設置方面的問題。 1]我們主要把vsftp的配制文件改一下就行了。配制文件在/etc/vsftpd/vsftpd.conf,用您喜歡的編輯器打開。請參考下面的配制文件。 # Example config file /etc/vsftpd.conf # # The default compiled in settings are very paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # # Allow anonymous FTP? anonymous_enable=YES # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown # below. #xferlog_file=/var/log/vsftpd.log # # If you want, you can have your log file in standard ftpd xferlog format xferlog_std_format=YES # # You may change the default value for timing out an idle session. #idle_session_timeout=600 # # You may change the default value for timing out a data connection. #data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that turning on ascii_download_enable enables malicious remote parties # to consume your I/O resources, by issuing the command "SIZE /big/file" in # ASCII mode. # These ASCII options are split into upload and download because you may wish # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking), # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be # on the client anyway.. #ascii_upload_enable=YES #ascii_download_enable=YES # # You may fully customise the login banner string: #ftpd_banner=Welcome to blah FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd.banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd.chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. #ls_recurse_enable=YES pam_service_name=vsftpd userlist_enable=YES #enable for standalone mode listen=YES tcp_wrappers=YES 2]更改完配制文件后,我們可以用下面的命令來重啟VSFTPD服務器 [root@linuxsir001 root]# /etc/init.d/vsftpd restart 關閉 vsftpd: [ 確定 ] 為 vsftpd 啟動 vsftpd: [ 確定 ] [root@linuxsir001 root]# 3]以匿名方式來訪問測試,在text模式下: 注意:在text模式下,要用用戶名ftp,密碼ftp來訪問,這才是在text中匿名訪問FTP??慈缦碌牟僮鳎? [root@linuxsir001 root]# ftp 192.168.0.1 Connected to 192.168.0.1. 220 (vsFTPd 1.1.3) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (192.168.0.1:root): ftp 這里寫上ftp 331 Please specify the password. Password:[這里添寫ftp的密碼],匿名登入密碼也是ftp 230 Login suclearcase/" target="_blank" >ccessful. Have fun. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (192,168,0,1,137,151) 150 Here comes the directory listing. drwxr-xr-x 6 0 0 4096 May 25 13:54 RedHat90 drwxr-xr-x 2 0 0 4096 Feb 28 19:21 pub 226 Directory send OK. ftp> 那匿名用戶所訪問的是哪個目錄?是/var/ftp這個目錄 出現問題的解決:有時出錯,是因為沒有ftp和nobody用戶,所以要在系統中添加這兩個用戶,一般的情況下,這兩個用戶在系統中是存在的??聪旅娴牟僮?。 [root@linuxsir001 root]# adduser ftp adduser: user ftp exists [root@linuxsir001 root]# adduser nobody adduser: user nobody exists 從上面的操作中可知ftp和nobody用戶是存在的,所以沒有必要添加ftp和nobody用戶了。如果不存在,一定要添加這兩個用戶,否則會出現匿名用戶不能訪問的情況。 4]如果要以系統中存在的普通用戶登入FTP,也沒有什么可以設置的,添加一個用戶就行。比如我要添加beinan這個用戶,就要用下面的辦法 [root@linuxsir001 root]# adduser beinan [root@linuxsir001 root]# passwd beinan Changing password for user beinan. New password: BAD PASSWORD: it does not contain enough DIFFERENT characters Retype new password: passwd: all authentication tokens updated successfully. [root@linuxsir001 root]# 這樣的話,就在/home目錄中出現一個beinan的用戶目錄:如下: [root@linuxsir001 root]# ls /home/ beinan 如果我們想讓beinan這個用戶作為虛擬用戶,也就是說,beinan這個用戶是不能登入系統的,只能是登入FTP。 那這樣的用戶應該如何添加呢?? [root@linuxsir001 backupNow]# adduser -g ftp -s /sbin/nologin beinan [root@linuxsir001 backupNow]# passwd beinan Changing password for user beinan. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@linuxsir001 backupNow]# 注:這僅僅是VSFTP添加虛擬用戶的一個方法,還有更好的辦法需要我們去學習!另外的辦法也在測試之中。嚴格上來說,這種辦法不能算虛擬用戶。還有另外的一個辦法,就是通過pam認證,用db_load來添加用戶,目前我也弄成功了,不過相對要復雜一點。正在測試之中。 如果我們想把用戶目錄定位到別的目錄應該怎么辦呢??這個也比較簡單,看一下useradd就比較明白了。比如我想添加beinan這個用戶,并把目錄放在/opt目錄中:如下操作: [root@linuxsir001 root]# adduser -d /opt/beinan beinan [root@linuxsir001 root]# passwd beinan Changing password for user beinan. New password: Retype new password: passwd: all authentication tokens updated successfully. 如果是添加虛擬用戶,也就是不讓用戶登入系統,只能登入FTP的用戶。如果我們想把beinan這個用戶目錄定位在/opt/beinan這個目錄中,根據上面的方法。我們應該如下操作 [root@linuxsir001 backupNow]# adduser -d /opt/beinan -g ftp -s /sbin/nologin beinan [root@linuxsir001 backupNow]# passwd beinan Changing password for user beinan. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@linuxsir001 backupNow]# 看一下是不是已經成功添加到了beinan這個用戶,并把beinan的家目錄放在了/opt目錄中呢?? [root@linuxsir001 root]# ls /opt/ beinan 證明已經成功。 我們可以在text模式下以beinan用戶登入,然后來訪問ftp。 [root@linuxsir001 root]# ftp 192.168.0.1 Connected to 192.168.0.1. 220 (vsFTPd 1.1.3) 530 Please login with USER and PASS. 530 Please login with USER and PASS. KERBEROS_V4 rejected as an authentication type Name (192.168.0.1:root): beinan 331 Please specify the password. Password: 230 Login successful. Have fun. Remote system type is UNIX. Using binary mode to transfer files. ftp> 是不是成功了??? 我們也可以用gftp來訪問beinan用戶,并上傳相應的東西,所傳上的東西就放在beinan用戶所在的家目錄中,普通用戶的家目錄在哪里,寫您所用的添加用戶的方法有關。我在前面已經說了兩種辦法,一種是默認的添加方法,就是放在/home目錄中。 在本例中,我是采用默認的添加用戶的方法。也就是不特別指定用戶用戶,這樣的話,用戶目錄就在/home目錄中。比如用beinan登入FTP時,訪問的就是/home/beinan這個目錄。讓傳的東西也在這個目錄中。 那匿名用戶所訪問的是哪個目錄呢??? 應該是:/var/ftp這個目錄 5]訪問ftp的幾種方法 第一種方法就是text訪問,也就是用ftp命令來訪問。這個前面已經說過了。 第二種方法是以客戶端FTP軟件來訪問,在linux中有gftp。在本例中,我的FTP地址是通過局域網訪問的。地址欄中,添上192.168.0.1,端口是21,用戶名和密碼的添寫,如果您是用匿名登入,請不要添寫用戶名和密碼。如果用普通用戶登入,這個是必須要用用戶名和密碼的。 第三種辦法是和瀏覽器訪問:如果匿名登入,就直接用下面的方法: ftp://192.168.0.1 如果是用戶登入方式,應該是 ftp://beinan@192.168.0.1 如果想讓在互聯網上的用戶能訪問到,如果您是用ADSL來訪問互聯網,要查找到您的動態IP,用下面的辦法 [root@linuxsir001 root]# ifconfig ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:218.61.7.23 P-t-P:218.61.7.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:24245 errors:0 dropped:0 overruns:0 frame:0 TX packets:20411 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:23103297 (22.0 Mb) TX bytes:3588337 (3.4 Mb) 從上面的可以知道,能讓在internet訪問的地址是:218.61.7.23 二。如何讓局域網通過這個FTP安裝Linux呢??以Redhat 9.0為例: 1。我們要在/var/ftp中,為每個發行版建一個目錄,然后把每個發行版的每個版本再建一個目錄。把每個版本的ISO都解壓到相應的目錄里。舉個例子: 比如我想讓其它的客戶機,通過我的服務器來安裝Redhat9.0,我就要在/var/ftp目錄中建一個RedHat90的目錄,然后把RedHat 9.0的三個ISO都解到這個目錄中。 這樣服務器的設置就完成了。 2??蛻魴C方面如何引導及設置???我們可以做一個系統的引志盤,但有的發行版也沒有必要。這也要以各個發行版的情況而定。比如Redhat 9.0的安裝,如果您的客戶機上有windows,就直接通過局域網的FTP,dosutils images isolinux三個目錄放到一個在fat32分區中建的目錄中,比如說在客戶機上建一個Redhat9的目錄,然后把三個文件拷到客戶機中的fat32分區中的Redhat9的目錄中。 3.客戶機安裝及操作: 以DOS盤引導,不要加載CDROM,直接進入客戶機中fat32分區Redhat9\dosutils目錄,執行下面的命令。 autoboot 這樣就開始了安裝: 4.出現的畫面中,我們要選ftp安裝。在設置網絡環境時,我們要設置好IP和網關之類的。 以我的局域網為例: 客戶機的IP設置成192.168.0.5,掩碼也是2552555.255.0,網關設置成192.168.0.1。name 服務可以不設置。以匿名方式訪問FTP。 下一步會出現讓我們添寫FTP,及安裝源的地址,還是以我的局域網為例: 地址:192.168.0.1 路徑:因為我是把三個ISO放在了/var/ftp/RedHat90的目錄下,我應該寫如下的 /RedHat90 這樣就OK了,一切和其它的安裝方式都是一樣的了。 因為每個發行版不太一樣,所以通過網絡安裝,有的要做引導盤,如何做引導盤,我想大家早就知道了。如果不知道這方面的,請用搜索來找這方面的帖子。 安裝配置一個proftpd的實例 http://www.chinaunix.net 作者:wd 發表于:2004-06-11 16:22:19 安裝配置一個proftpd的實例 目的: 安裝配置一個proftpd,達到以下要求 1 不允許匿名訪問。 2 開放一個帳號,只有在upload目錄有上傳權限,可以續傳,不能改名和刪除。 操作: 0 切換到root帳戶 [code:1:0258b10472] su root //輸入root的密碼。 [/code:1:0258b10472] 1 下載proftpd 地址:www.proftpd.org。這里我們下載了1.2.9版本 [code:1:0258b10472] wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.2.9.tar.gz [/code:1:0258b10472] 2 安裝proftpd 切換到下載目錄,假設為/tmp/proftpd,然后 [code:1:0258b10472] tar zxvf proftpd-1.2.9.tar.gz //解壓 cd proftpd-1.2.9 ./configure --prefix=/var/proftpd --sysconfdir=/etc //設置安裝目錄/var/proftpd,配置文件目錄/etc make make install [/code:1:0258b10472] 3 新建ftp專用帳號 就是上面目的中提到的那個專用帳號,這里以skate/skate(u/p)為例。 [code:1:0258b10472] groupadd skate useradd skate -g skate -d /var/ftp -s /sbin/nologin //設置/var/ftp目錄為ftp的目錄 passwd skate //設置skate用戶的密碼 mkdir /var/ftp/upload chown skate.skate /var/ftp/upload //設置upload目錄skate用戶可寫 [/code:1:0258b10472] 4 設置proftpd proftpd的配置文件就一個,就是/etc/proftpd.conf [code:1:0258b10472] vi /etc/proftpd.conf //打開proftpd.conf [/code:1:0258b10472] [code:1:0258b10472] ####具體配置如下###### ServerName "Test ftp server..." ServerType standalone DefaultServer on #端口 Port 21 Umask 022 #最大線程數 MaxInstances 30 User skate Group skate #DNS反查 UseReverseDNS off IdentLookups off #最大嘗試連接次數 MaxLoginAttempts 3 #每用戶線程 MaxClientsPerHost 2 #最大用戶數 MaxClients 20 DirFakeUser On skate DirFakeGroup On skate DeferWelcome On #日志文件位置 SystemLog /var/log/proftpd.log ServerIdent off #限制skate組的skate用戶登錄時不能切換到其他目錄(只能呆在他的home目錄) DefaultRoot ~ skate,skate #設置只允許192.168.0的用戶登錄 # #Order allow,deny #Allow from 192.168.0. #Deny from all # #設置只允許skate用戶登錄,否則系統用戶也可以登錄ftp # #Order allow,deny #DenyUser !skate # #開起全盤的寫權限 AllowOverwrite on AllowStoreRestart on #允許FXP # AllowForeignAddress on AllowAll #設置skate用戶在upload的限制 #DELE刪除權限 #RNFR RNTO重命名權限 #RMD XRMD移動目錄權限 DenyUser skate #####結束###### [/code:1:0258b10472] 編輯完以后按Esc,然后輸入:x保存。 5 啟動服務 編輯一個啟動腳本(這個是proftpd自帶的,做了一點小修改) [code:1:0258b10472] vi /etc/rc.d/init.d/proftpd[/code:1:0258b10472] [code:1:0258b10472] #####腳本內容開始######## #!/bin/sh # # Startup script for ProFTPD # # chkconfig: 345 85 15 # description: ProFTPD is an enhanced FTP server with # a focus toward simplicity, security, and ease of configuration. # It features a very Apache-like configuration syntax, # and a highly customizable server infrastructure, # including support for multiple 'virtual' FTP servers, # anonymous FTP, and permission-based directory visibility. # processname: proftpd # config: /etc/proftpd.conf # # By: Osman Elliyasa # $Id: proftpd.init.d,v 1.7 2002/12/07 21:50:27 jwm Exp $ # Source function library. . /etc/rc.d/init.d/functions if [ -f /etc/sysconfig/proftpd ]; then . /etc/sysconfig/proftpd fi #下面這行設置環境變量,注意設置好你的proftpd的安裝目錄 PATH="$PATH:/usr/local/sbin:/var/proftpd/bin:/var/proftpd/sbin" # See how we were called. case "" in start) echo -n "Starting proftpd: " daemon proftpd $OPTIONS echo touch /var/lock/subsys/proftpd ;; stop) echo -n "Shutting down proftpd: " killproc proftpd echo rm -f /var/lock/subsys/proftpd ;; status) status proftpd ;; restart) stop start ;; reread) echo -n "Re-reading proftpd config: " killproc proftpd -HUP echo ;; suspend) hash ftpshut >/dev/null 2>&1 if [ $? = 0 ]; then if [ $# -gt 1 ]; then shift echo -n "Suspending with '$*' " ftpshut $* else echo -n "Suspending NOW " ftpshut now "Maintanance in progress" fi else echo -n "No way to suspend " fi echo ;; resume) if [ -f /etc/shutmsg ]; then echo -n "Allowing sessions again " rm -f /etc/shutmsg else echo -n "Was not suspended " fi echo ;; *) echo -n "Usage: {start|stop|restart|status|reread|resume" hash ftpshut if [ $? = 1 ]; then echo '}' else echo '|suspend}' echo 'suspend accepts additional arguments which are passed to ftpshut(8)' fi exit 1 esac if [ $# -gt 1 ]; then shift $* fi exit 0 #######腳本結束######### [/code:1:0258b10472] 按Esc,輸入:x保存。 修改權限,然后添加到系統服務并啟動 [code:1:0258b10472] chmod +x /etc/rc.d/init.d/proftpd chkconfig --add proftpd service proftpd start[/code:1:0258b10472] 以后可以用service proftpd restart來重起proftpd。 6 一點體會 看proftpd的文檔翻譯過的一句話:Finally, a special command is allowed which can be used to control login access: LOGIN Connection or login to the server. Applying a to this pseudo-command can be used to allow or deny initial connection or login to the context. It has no effect, and is ignored, when used in a context other than server config, or (i.e. using it in a context is meaningless). 翻譯下:最后,有一個用來限制登陸的特殊命令,就是LOGIN。在中用這個,可以禁止或者允許連接進來。但是,如果不在Server config, 或者中使用的話,他將失去效用,或者說被忽略掉(比如在中使用就是無效的)。 proftpd感覺還是比vsftp功能配置上好用一點,主要掌握好段基本上應用來說就沒有問題了。 proftpd文檔地址http://www.proftpd.org/docs/。[/code] 修改了好幾次了,之前有些筆誤和忘記寫的地方,有什么問題大家提出來,我會及時修改的。謝謝。 【發表回復】【查看論壇原帖】【添加到收藏夾】【關閉】 wd 回復于:2004-06-11 16:28:50 雖然關鍵內容不是我的原創,比如那個腳本(我不會寫腳本,呵呵),可是好歹也寫了半天,呵呵。 歡迎拍轉。 daminggege 回復于:2004-06-13 15:48:41 我照著別人的配置都不能運行,用這個可以 比較一下好像就這兩句有區別,麻煩告知 daminggege 回復于:2004-06-13 16:02:24 照著http://www.chinaunix.net/jh/15/247811.html,設置 useradd -d /home/kaoyan -g ftpusers -s /bin/false kaoyan useradd -d /home/kaoyan -g ftpusers -s /bin/false upload 不能訪問,如果把false換成bash就可以,為什么???????! mswhome 回復于:2004-06-13 16:14:22 有沒有人告訴我為什么我的Linux上不能使用chkconfig命令? wd 回復于:2004-06-14 13:41:36 [quote:aadb08de32="daminggege"]照著http://www.chinaunix.net/jh/15/247811.html,設置 useradd -d /home/kaoyan -g ftpusers -s /bin/false kaoyan useradd -d /home/kaoyan -g ftpusers -s /bin/false upload 不能訪問,如果把false換成bash..........[/quote:aadb08de32] 把false換成nologin也可以。 daminggege 回復于:2004-06-14 18:03:44 樓主,能否清楚的解釋一下 wd 回復于:2004-06-14 20:41:32 不太清楚,呵呵 是不是因為系統沒有/bin/false這個shell??? daminggege 回復于:2004-06-14 21:52:33 false,好象是不為此用戶提供shell環境 這樣是不是更安全呢? 本人菜鳥,多謝指教 wd 回復于:2004-06-15 08:50:35 nologin也是這個效果。。。 smgxnet 回復于:2004-06-16 22:54:16 請問要求不同目錄,有不同用戶和各自的權限能夠ftp進去,該怎么做??? 例如:test用戶擁有11文件夾的寫權限,test2用戶擁有22文件夾的寫權限。 希望不吝指教!謝謝! wd 回復于:2004-06-17 09:48:15 test,test2設置到一個組,然后chmod /dir目錄775,然后 test,test2都對目錄/dir/11和/dir/22有寫權限了 如果想分開,可以用 MKD / XMKD 創建目錄 RNFR / RNTO 改名 DELE 刪除 RMD / XRMD 移動 RETR / STOR 下載/上傳 差不多了吧 可以來這里看看 http://www.proftpd.org/docs/directives/linked/config_ref_Limit.html smgxnet 回復于:2004-06-17 10:41:39 [quote:d79831187a="wd"]test,test2設置到一個組,然后chmod /dir目錄775,然后 test,test2都對目錄/dir/11和/dir/22有寫權限了 如果想分開,可以用 MKD / XMKD 創建目錄 RNFR / RNTO 改名 DELE 刪除 RMD / XRMD 移動 RETR / STOR 下..........[/quote:d79831187a] 感謝wd!我有點笨。呵呵! 能否具體告知步驟呢?? wd 回復于:2004-06-17 11:18:53 不能。呵呵 dslz 回復于:2004-07-08 11:50:02 我為什么在執行這個命令時提示找不到目錄???? chkconfig --add profptd service proftpd start 那現在我要怎樣才能啟動呀???? dslz 回復于:2004-07-10 10:17:20 ??? opem 回復于:2004-09-13 17:31:39 [quote:5665bbca0e="daminggege"]樓主,能否清楚的解釋一下:把false換成nologin還是不能訪問[/quote:5665bbca0e] 在配置文件中加上: RequireValidShell off opem 回復于:2004-09-13 17:34:18 [quote:252f870ff5="dslz"]我為什么在執行這個命令時提示找不到目錄???? chkconfig --add profptd service proftpd start 那現在我要怎樣才能啟動呀????[/quote:252f870ff5] 樓主把proftpd誤寫成了profptd.這兩句沒有別的問題,執行完最后一句就能啟動了 xcarb 回復于:2004-09-19 11:39:58 [root@localhost proftpd-1.2.9]# service proftpd restart /etc/init.d/proftpd: line 1: tartup: command not found /etc/init.d/proftpd: line 1: tartup: command not found Shutting down proftpd: [ 確定 ] /etc/init.d/proftpd: line 1: tartup: command not found Starting proftpd: [ 確定 ] 出現這種情況怎么解決 ? opem 回復于:2004-09-21 10:38:15 [quote:b0bc293da6="xcarb"]] 出現這種情況怎么解決 ?[/quote:b0bc293da6] 我估計是你的proftpd中第一行"# Startup script for ProFTPD"漏掉了"# S"才會出現系統找不到tartup命令的錯誤提示,查查看,不行把proftpd貼出來. wd 回復于:2004-10-28 08:48:09 我最近用的一個proftpd的配置文件,只允許ph用戶登陸,ph用戶在/var/ftp/upload目錄下可以上傳。 [code:1:46fab269bb] ServerName "Test ftp server..." ServerType standalone DefaultServer on Port 21 Umask 022 MaxInstances 30 User ph Group ph UseReverseDNS off IdentLookups off MaxLoginAttempts 3 MaxClientsPerHost 2 MaxClients 20 DirFakeUser On ftp DirFakeGroup On ftp DeferWelcome On SystemLog /var/log/proftpd.log ServerIdent off DefaultRoot ~ ph,ph Order allow,deny DenyUser !ph AllowOverwrite on AllowStoreRestart on # AllowForeignAddress on DenyUser ph AllowUser ph

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97