[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fol] Apache $B$N@_Dj$K$D$$$F65$($F$/$@$5$$(B


$B$O$8$a$^$7$F=i?4http://192.168.0.1/ $B$G$&$^$/8+$l$J$/$J$j$^$7$?!#(B
Samba$B$N@_Dj$G(BWindows$B$+$i(BLinux$B$O$A$c$s$H8+$l$F$$$^$9!#(B
$B2<5-$N!!(Bns.abc.net
$B%[%9%HL>(B abc.net $B$H$7$?>l9g(B

<<<<$B%M%C%H%o!<%/$N@_Dj(B>>>>

$B-!(B /etc/hosts $B$NJQ99(B

127 . 0 . 0 . 1 localhost localhost.localdomain  <- $B$3$3$O@dBPBX$($J$$(B
192 . 168 . 0 . 1 abc.net
192 . 168 . 0 . 40 win1 (Windows$BB&$N%3%s%T%e!<%?L>(B & Linux$BB&$N%f!<%6%m%0%$%s(B
$BL>(B)


$B-"(B Windows$BB&$N@_Dj(B

$B!!%3%s%H%m!<%k%Q%M%k$+$i!V%M%C%H%o!<%/$N@_Dj!W$N!V8=:_$N%M%C%H%o!<%/%3%s%]!<(B
$B%M%s%D!W$NCf$K$"$k(B
$B!!!V(BTCP/IP$B!W%W%m%Q%F%#$rA*Br!#(B

$B!!!V(BIP$B%"%I%l%9!W$K!!>e5--!$G@_Dj$7$?$b$N$rF~NO!#(B 192 . 168 . 0 . 40
$B!!!V%5%V%M%C%H%^%9%/!W$K(B    255 . 255 . 255. 0 $B$rF~NO!#(B
 $B%^%7%s$r:F5/F0$9$k!#(B


$B-#(B $B%M%C%H%o!<%/$N3NG'(B

$B!!(BWindows$BB&$+$i(B

Windows$B$N(BDOS$B%W%m%s%W%H$r5/F0!#(B
Ping 192 . 168 . 0 . 1   $B$rF~NO!#(B
Reply from 192 . 168 . 0 . 1 : bytes=32 time<10ms TTL=128 $B$,I=<($5$l$l$P#O#K(B
$B!*(B

$B!!(BLinux$BB&$+$i(B

 Ping 192 . 168 . 0 . 40   $B$rF~NO!#(B

 PING 192 . 168 . 0 . 40 (192 . 168 . 0 . 40) : 56 data bytes
 64 bytes from 192 . 168 . 0 . 40 : icmp_seq=0 ttl=128 time=0.5 ms
 64 bytes from 192 . 168 . 0 . 40 : icmp_seq=1 ttl=128 time=0.5 ms
 64 bytes from 192 . 168 . 0 . 40 : icmp_seq=2 ttl=128 time=0.5 ms
 ($B0J9_1J1s$HB3$/(B)

 [Ctrl] + [c] $B$G=*N;!#(B


<<<<$B#S#a#m#b#a$ND4@0(B>>>>

$B-!(B /etc/smb.conf $B$NJQ99(B

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#
#======================= Global Settings
=====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = linuxnet  (Windows$B$G;XDj$9$k%o!<%/%0%k!<%W$HF10l$N$b$N(B)

# server string is the equivalent of the NT Description field
   server string = Samba Server

$B!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!!CfN,(B
$B!!!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d(B

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
   encrypt passwords = yes (Windows95 OSR2$B0J9_$O(B "yes")
;  smb passwd file = /etc/smbpasswd

$B!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!c!!0J2<>JN,(B
$B!!!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d!d(B


$B-"(B $B0E9f2=%Q%9%o!<%I$N@_Dj(B

$B!!(Broot$B$G(Blogin$B$7(BKterm$B$G(BSamba$B%Q%9%o!<%I:n@.(B

# cat /etc/passwd | mksmbpasswd.sh > /etc/smbpasswd
# chmod 600 /etc/smbpasswd

# smbpasswd win1

smbpasswd Old SMB password:  winpass
New SMB Password:   winpass
Repeat New SMB Password: winpass


$B-#(B Samba$B5/F0!?=*N;(B
$B!!5/F0(B
# /etc/rc.d/init.d/smb start
$B!!=*N;(B
# /etc/rc.d/init.d/smb stop

<<<<$B#A#p#a#c#h#e$N@_Dj(B>>>>
$B-!(B /etc/http/conf/httpd.conf $B$NJQ99(B

ServerName abc.net $B$H$7J]B8!#(B

$B-"(B Apache$B5/F0!?=*N;(B
$B!!5/F0(B
# /etc/rc.d/init.d/httpd start
$B!!=*N;(B
# /etc/rc.d/init.d/httpd stop

$B$3$N>pJs$,$"$J$?$NC5$7$F$$$?$b$N$+$I$&$+A*Br$7$F$/$@$5$$!#(B
yes/$B$^$5$K$3$l$@!*(B   no/$B0c$&$J$!(B   part/$B0lIt8+$D$+$C$?(B   try/$B$3$l$G;n$7$F$_$k(B

$B$"$J$?$,C5$7$F$$$?>pJs$O$I$N$h$&$J$3$H$+!"$4<+M3$K5-F~2<$5$$!#FC$K!V$^$5$K$3$l$@!*!W$H8@$&>l9g$O5-F~$r$*4j$$$7$^$9!#(B
$BNc(B:$B!VJ#?t$N%^%7%s$+$i(BCATV$B7PM3$G(Bipmasquerade$B$rMxMQ$7$F(BWeb$B$r;2>H$7$?$$>l9g$N@_Dj$K$D$$$F!W(B
Follow-Ups: