/usr/share/doc/HOWTO/ja-html/Virtual-wu-ftpd-2.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Virtual FTP-server with wu-ftpd: $B2>A[%5!<%S%9$H%5!<%P!<(B</TITLE>
<LINK HREF="Virtual-wu-ftpd-3.html" REL=next>
<LINK HREF="Virtual-wu-ftpd-1.html" REL=previous>
<LINK HREF="Virtual-wu-ftpd.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="Virtual-wu-ftpd-3.html">$B<!$N%Z!<%8(B</A>
<A HREF="Virtual-wu-ftpd-1.html">$BA0$N%Z!<%8(B</A>
<A HREF="Virtual-wu-ftpd.html#toc2">$BL\<!$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%l%9(B</A>
</H2>
<P>$B:G$bC1=c$J%1!<%9$H$7$F0J2<$N$h$&$J2>A[%[%9%H$H=jB0$7$F$$$k%I%a%$%s08$F(B
$B$N$9$Y$F$N%a!<%k$r<u$1$H$k>l9g!'(B
<P>
<BLOCKQUOTE><CODE>
<PRE>
www.sharpers.com, www.usurers.com, www.swindlers.com,
sharpers.com, usurers.com, swindlers.com
</PRE>
</CODE></BLOCKQUOTE>
<P>"smail" $B$d(B "sendmail"$B!J(BLinux $B%^%7%s$G%a!<%k=hM}$r9T$C$F$$$k%G!<%b%s!K$N(B
$B@_Dj$OHf3SE*4JC1$J$b$N$G!"DI2C%[%9%HL>(B/$B%I%a%$%s$r0J2<$N%U%!%$%k$K=q$/(B
$B$@$1$G$9!'(B
<P>
<BLOCKQUOTE><CODE>
<PRE>
"/etc/smail/config" ('hostnames=' $B$H(B 'domains=' $B%(%s%H%j(B)
</PRE>
</CODE></BLOCKQUOTE>
$B$"$k$$$O(B
<BLOCKQUOTE><CODE>
<PRE>
"/etc/mail/sendmail.cw" $B!JJL!9$N9T$K$=$l$>$l$N%[%9%HL>!K(B
</PRE>
</CODE></BLOCKQUOTE>
<P>smail $B$K!VK\Ev$N!W2>A[%I%a%$%s$r<BAu$9$k>l9g$O!"2<5-$K$"$k(B smail-FAQ $B$r(B
$B$4Mw$/$@$5$$!#(B
<P>
<BLOCKQUOTE><CODE>
<PRE>
http://www.sbay.org/smail-faq.html
</PRE>
</CODE></BLOCKQUOTE>
<P>
<P>
<H2><A NAME="ss2.3">2.3 $B2>A[(B ftp $B%5!<%P!<(B</A>
</H2>
<P>$B2>A[(B ftp $B%5!<%P!<$H$$$&%3%s%;%W%H$O!"Cx<T$NCN$k8B$j!"$I$N(B ftp $B%G!<%b%s(B
$B$G$b%5%]!<%H$5$l$F$$$^$;$s!#(B
<P>$B9-$/;H$o$l$F$$$k(B "wu-ftpd" $B$G$O(B Brian Grossman
<brian@SoftHome.Net>
$B$,:n@.$7$?(B anonymous FTP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$:8=<BE*$JNc$r<($7$?$&$($G!"Cx<T$,$"$k$*5RMM$N$?$a$K$I$N$h$&$K$7$?$+(B
$B>R2p$7$^$9!J$?$@%^%7%sL>$r2M6u$N$b$N$K$7$?$@$1$G$9!K!#(B
<P>
<UL>
<LI>(a) $B0[$J$k(B anonymous ftp $B%5!<%P!<$r9=@.$9$k$?$a(B "<CODE>/home/ano-ftp</CODE>"
$B%G%#%l%/%H%j$r:n@.$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
mkdir /home/ano-ftp && cd /home/ano-ftp
mkdir ftp.sharpers.com ftp.usurers.com ftp.swindlers.com
</PRE>
</CODE></BLOCKQUOTE>
$B:n@.$7$?%G%#%l%/%H%j9=@.$O0J2<$N$H$*$j$G$9!'(B
<BLOCKQUOTE><CODE>
<PRE>
/home/ano-ftp/
|-- ftp.sharpers.com
|-- ftp.swindlers.com
`-- ftp.usurers.com
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI>(b) anonymous ftp $B%5!<%S%9$KI,MW$J%U%!%$%k$r4{$K@_Dj$7$F$"$k(B
anonymous-ftp $B%G%#%l%/%H%j(B "<CODE>/home/ftp</CODE>" $B$+$i!"?7$?$K(B
$B:n@.$7$?%G%#%l%/%H%j$K%3%T!<$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
cd /home/ano-ftp/ftp.sharpers.com
cp -a /home/ftp/* .
cd ../ftp.swindlers.com
cp -a /home/ftp/* .
cd ../ftp.usurers.com
cp -a /home/ftp/* .
</PRE>
</CODE></BLOCKQUOTE>
"<CODE>pub/</CODE>" $B$K$"$kITMW$J%U%!%$%k$r8e$G:o=|$9$k$N$rK:$l$J$$$h$&$K(B
$B$7$^$7$g$&!J$"$k$$$O$O$8$a$+$i%3%T!<$7$J$$!K!#(B
$B;29M$H$7$F(B Debian $BG[I[%Q%C%1!<%8$G$N(B "/home/ftp" $B$r>R2p$7$^$9!'(B
<BLOCKQUOTE><CODE>
<PRE>
/home/ftp Permissions Owner Group Size
|-- bin d--x--x--x 2 root root
| |-- gzip ---x--x--x 1 root root 45121
| |-- ls ---x--x--x 1 root root 22945
| `-- tar ---------- 1 root root 77769
|
|-- etc d--x--x--x 2 root root
| |-- group -r--r--r-- 1 root root 18
| |-- passwd -r--r--r-- 1 root root 44
| `-- pathmsg -r--r--r-- 1 root root 172
|
|-- lib d--x--x--x 2 root root
| |-- ld-linux.so.1 -r-xr-xr-x 1 root root 21375
| |-- libc.so.5.2.18 -rwxr-xr-x 1 root root 536252
| `-- libc.so.5 -> libc.so.5.2.18
|
|-- pub dr-xr-xr-x 3 root root
| `-- whatever
|
`-- welcome.msg -rw-r--r-- 1 root root 323
</PRE>
</CODE></BLOCKQUOTE>
</LI>
<LI>(c) "<CODE>/etc/passwd</CODE>" $B%U%!%$%k$rJT=8$7$F(B anonymous ftp $B%"%+%&%s%H(B
$B$N%[!<%`(B
$B%G%#%l%/%H%j$r(B "<CODE>/home/ano-ftp</CODE>" $B$KJQ99$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
ftp:*:11:11:Anonymous FTP:/home/ano-ftp:/bin/sh
^^^^^^^^^^^^^
$B%[!<%`%G%#%l%/%H%j(B
</PRE>
</CODE></BLOCKQUOTE>
$B0J>e$N(B3$B%9%F%C%W$,4pK\@_Dj$G!"$3$l$G(B3$B$D$N2>A[%[%9%H$O$=$l$>$lJ,$1$i(B
$B$l$?(B ftp $B%(%j%"(B $B$r;HMQ$G$-$^$9!#(B
$BCx<T$N>l9g!"K\Ev$N:n6H$O$3$3$+$i$G!"$=$l$>$l$N(B incoming $B%G%#%l%/%H%j(B
$BKh$K%G%#%9%/3dEvNL$r@_Dj!J3F%0%k!<%W$K%G%#%9%/%9%Z!<%9$N;HMQNL$r(B
$B@)8B!K$7$J$1$l$P$J$i$J$+$C$?$N$G$A$g$C$HJ#;($K$J$j$^$9!#(B
<P>
</LI>
<LI>(d) wu-ftpd $B$N@_Dj%U%!%$%k(B "<CODE>/etc/ftpd/ftpaccess</CODE>" $B$G(B upload
$B%(%j%"(B $B$r;H$($k$h$&$K$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
upload /home/ano-ftp/www.sharpers.de * no
upload /home/ano-ftp/www.sharpers.de /incoming yes sharpers ftp 0660 nodirs
upload /home/ano-ftp/www.swindlers.de * no
upload /home/ano-ftp/www.swindlers.de /incoming yes swindler ftp 0660 nodirs
upload /home/ano-ftp/www.usurers.de * no
upload /home/ano-ftp/www.usurers.de /incoming yes usurers ftp 0660 nodirs
# | | | | |
# $B%"%C%W%m!<%I$N5v2D(B --+ | | | |
# $B%"%C%W%m!<%I%U%!%$%k$N%*!<%J!<$r@_Dj(B ---------+ | | |
# $B%"%C%W%m!<%I%U%!%$%k$N%0%k!<%W$r@_Dj(B ----------------+ | |
# $B%"%C%W%m!<%I%U%!%$%k$N%"%/%;%95v2D8"$N@_Dj(B --------------------+ |
# $B%G%#%l%/%H%j$N:n@.IT5v2D(B ---------------------------+
</PRE>
</CODE></BLOCKQUOTE>
$B$3$l$G(B ftp $B%5!<%P!<$K%"%C%W%m!<%I$5$l$k%U%!%$%k$O$=$l$>$l0[$J$k(B
$B%f!<%6!<$KB0$9$k$h$&$K$J$j!"%G%#%9%/3dEvNL$N@_Dj$,9T$($k$h$&$K(B
$B$J$j$^$9!#(B
<P>
</LI>
<LI>(e)$B%G%#%9%/3dEvNL$N@_Dj(B
<P>$B$^$:$O(B "<CODE>/usr/doc/quotas.txt</CODE>" $B$H(B Linux "Quota mini-HOWTO
(
<A HREF="http://www.linux.or.jp/JF/JFdocs/Quota/index.html">$BF|K\8lLu(B</A>)" $B$r;2>H$7$^(B
$B$7$g$&!#(B
<P>
<UL>
<LI>* "<CODE>/etc/fstab</CODE>" $B$N(B "<CODE>/home/an-ftp</CODE>" $B%Q!<%F%#%7%g%s$N(B
$B%^%&%s%H%*%W%7%g%s(B
$B$K(B"<CODE>usrquota=/etc/quota/ano-ftp.users</CODE>" $B$rDI2C$7$^$9!#(B</LI>
<LI>* "<CODE>touch</CODE>" $B%3%^%s%I$G(B "<CODE>/etc/quota/ano-ftp.users</CODE>"
$B$r:n@.$7$^$9!#(B</LI>
<LI>* "<CODE>quotaon</CODE>" $B$r<B9T$7$F3dEv$F$rM-8z$K$7$^$9!#(B</LI>
<LI>* $B3dEv$F$r(B "<CODE>edquota swindlers</CODE>" $BEy$G@_Dj$7$^$9!#(B
<P><CODE>user swindlers</CODE> $B$N3dEv$F(B:
<P>
<BLOCKQUOTE><CODE>
<PRE>
/dev/sdb8: blocks in use: 0, limits (soft = 0, hard = 10000)
inodes in use: 1, limits (soft = 0, hard = 1000)
</PRE>
</CODE></BLOCKQUOTE>
<P>$BBP1~$9$k%G%#%9%/%9%Z!<%9$O%U%!%$%k%7%9%F%`:n@.;~$N%V%m%C%/%5%$%:(B
$B$K$h$j0[$J$j$^$9!JI8=`$O(B $B#1%V%m%C%/(B = 1 kb)$B!#(B
<P>
</LI>
</UL>
<P>
</LI>
</UL>
<P>
<P>
<HR>
<A HREF="Virtual-wu-ftpd-3.html">$B<!$N%Z!<%8(B</A>
<A HREF="Virtual-wu-ftpd-1.html">$BA0$N%Z!<%8(B</A>
<A HREF="Virtual-wu-ftpd.html#toc2">$BL\<!$X(B</A>
</BODY>
</HTML>
|