BBS水木清华站∶精华区

发信人: bx440 (kernel-2.3.8), 信区: Linux        
标  题: Re: 亿万次地问: ftp匿名上载问题 
发信站: BBS 水木清华站 (Sat Jul 10 14:13:49 1999) 
 
【 在 bake (你笑我痴) 的大作中提到: 】 
 偶的问题真的很奇怪, 前面关于ftp的文章偶都看了. 
 该做的好象也都做了. 
 chown -R ftp incoming 
 chgrp -R ftp incoming  
 chmod -R 777 incoming 
 在ftp中umask 000也执行了.底下是incoming目录的属性: 
 #pwd 
 /home/ftp/incoming 
 #ls -la 
 total 5 
 drwxrwxrwx   5 ftp      ftp          1024 Jul 10 11:45 ./ 
 drwxrwxr-x   8 ftp      ftp          1024 Jul  3 04:34 ../ 
 drwxrwxrwx   2 ftp      ftp          1024 Jul 10 11:27 test1/ 
 drwxrwxrwx   3 ftp      ftp          1024 Jul 10 11:32 test2/ 
 drwxrwxrwx   2 ftp      ftp          1024 Jul 10 11:45 test3/ 
  
 在incoming目录里可以上载文件,也可以创建n级子目录 
 可是,在下n(n>1)级子目录上载文件时,它总是恨恨地说,"Permission denied(Upload)" 
 偶实在看不出什么毛病, 烦劳诸位高手指点. 
 以下是偶的ftpaccess文件 
 loginfails 5 
  
 class   local   real,guest,anonymous *.domain 0.0.0.0 
 class   remote  real,guest,anonymous * 
  
 limit   local   20  Any                 /etc/msgs/msg.toomany 
 limit   remote  100 SaSu|Any1800-0600   /etc/msgs/msg.toomany 
 limit   remote  60  Any                 /etc/msgs/msg.toomany 
  
 readme  README*    login 
 readme  README*    cwd=* 
  
 message /welcome.msg            login 
 message .message                cwd=* 
  
 compress        yes             local remote 
 tar             yes             local remote 
  
 # allow use of private file for SITE GROUP and SITE GPASS? 
 private         yes 
  
 # passwd-check  <none|trivial|rfc822>  [<enforce|warn>] 
 passwd-check    rfc822  warn 
  
 log commands real 
 log transfers anonymous,real inbound,outbound 
 shutdown /etc/shutmsg 
  
 # all the following default to "yes" for everybody 
 delete          yes     guest,anonymous         # delete permission? 
 overwrite       yes     guest,anonymous         # overwrite permission? 
 rename                yes     guest,anonymous         # rename permission? 
 chmod           yes      anonymous               # chmod permission? 
 umask           yes      anonymous               # umask permission? 
  
 # specify the upload directory information 
 upload  /home/ftp  *             no 
 upload  /home/ftp  /bin          no 
 upload  /home/ftp  /etc          no 
 upload  /home/ftp  /incoming     yes     ftp  daemon  0777   dirs 
很多人问过这个问题了,当然我也曾和你一样! 
这样改,试试看! 
upload /home/ftp /incoming*     yes ftp ftp 777 dirs 
   
 # directory aliases...  [note, the ":" is not required] 
 alias   inc:    /incoming 
  
 # cdpath 
 cdpath  /incoming 
 cdpath  /pub 
 cdpath  / 
  
 # path-filter... 
 path-filter  anonymous  /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^- 
 path-filter  guest      /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^- 
  
 # specify which group of users will be treated as "guests". 
 guestgroup ftponly 
  
 email user@hostname 
 
 
-- 
   
        宁要LINUX的草,不要MS的苗![D 
 
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.167.161] 

BBS水木清华站∶精华区