[linux-users: 108683] Re: sftp の chroot 先を他のサーバと共有する場合
西田秀雄
nishita @ jomon.ne.jp
2010年 11月 29日 (月) 16:43:57 JST
$B@>ED$H?=$7$^$9!#(B
> /var/www/hoge.co.jp/dev/log$B$r @ jM-!"$^$?$OGSB>@)8f$7$F$7$^$&$h$&$JF0$-$K;W$($^$9!#(B
1$B$N%=%1%C%H$r(B2$B$D$N%G!<%b%s$G!I$D$+$`!I$N$O$G$-$J$$$N$G$O$J$$$G$7$g$&$+!)(B
$B!J<B:]$K;n$7$?$3$H$,$J$$$N$G3N<B$J$H$3$m$O8@$($^$;$s$,!K(B
> $B$J$K$+2r7h:v(B($B%5!<%PKh$K%m%0$r=PNO$5$;$?$$(B)$B$,$"$l$P$465<x$/$@$5$$!#(B
syslog$B%5!<%P!<$r7z$F$F(B(Web1$B$G$b!"(BWeb2$B$G$b!"$b$7$/$OJL$N%5!<%P!<$G$b!K$=(B
$B$N(Bsyslog$B%5!<%P!<$K=8Ls$9$l$P$$$$$N$G$O$J$$$G$7$g$&$+!)(B
$B!J",(Bsyslog$B%5!<%P!<$O3F%5!<%P!<$NCf$G5/F0=g=x$,Aa$$%5!<%P!<$K$7$^$7$g$&!K(B
syslog$B$rAw?.$9$k%5!<%P!<$G$O(Bsftp$B$N%m%0$r=PNO$9$k(Bdestination$B$r%U%!%$%k$G(B
$B$O$J$/%j%b!<%H%[%9%H$K$7!"(Bsyslog$B$r<u$1<h$k%5!<%P!<(B($B$3$N%5!<%P!<$K%m%0$,(B
$B=8$^$j$^$9!K$G$O!V%5!<%PKh$K%m%0$r=PNO!W @ _Dj$r$9$l$P$$$$$N$G$O$J$$$G$7(B
$B$g$&$+!)(B
$B!V(Bsyslog-ng $B%j%b!<%H!W$d!V(Bsyslog-ng $B%[%9%HKh!W$d!V(Bsyslog-ng $B%m%0(B $B=8Cf4I(B
$BM}!W$J$I$G8!:w$9$l$P7k9=0z$C$+$+$j$^$9$N$G!";29M$K$7$F$_$F$/$@$5$$!#(B
>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$$$k$h$&$G$9!#(B
>
> [netstat -na $B$N7k2L(B]
> $B-!(BWEB$B%5!<%P(B1$B9f5!(B
> unix 2 [ ACC ] STREAM LISTENING 6254205 /var/www/hoge.co.jp/dev/log
>
> $B-"(BWEB$B%5!<%P(B2$B9f5!(B
> unix 2 [ ACC ] STREAM LISTENING 6040963 /var/www/hoge.co.jp/dev/log
>
>
> $B$3$NF0$-$, @ 5>o$G$"$l$P$7$g$&$,$J$$$N$G$9$,!%!%!%(B
>
> $B$J$K$+2r7h:v(B($B%5!<%PKh$K%m%0$r=PNO$5$;$?$$(B)$B$,$"$l$P$465<x$/$@$5$$!#(B
> $B$h$m$7$/$*4j$$$7$^$9!#(B
------------------------------------------------------------
Nish - Hideo Nishita - / nishita @ jomon.ne.jp
linux-users メーリングリストの案内