当前位置: 技术问答>linux和unix
VMware 主机共享
来源: 互联网 发布时间:2016-06-02
本文导语: 主机:xp 虚拟机:fc6 通过samba实现主机与虚拟机下的linux共享 通过工具里的映射网络驱动器可以连接到liux里samba设置的目录(以前可以,现在不行了。。。。什么也没动过) ifcfg-eth0配置: 2 DEVICE=eth0 3 HWADDR=00:0c...
主机:xp
虚拟机:fc6
通过samba实现主机与虚拟机下的linux共享
通过工具里的映射网络驱动器可以连接到liux里samba设置的目录(以前可以,现在不行了。。。。什么也没动过)
ifcfg-eth0配置:
2 DEVICE=eth0
3 HWADDR=00:0c:29:75:2a:f5
4 BOOTPROTO=static
5 IPADDR=10.10.0.100
6 NETMASK=255.255.255.0
7
8
9 #DEVICE=eth0
10 #BOOTPROTO=dhcp
11 #HWADDR=00:0c:29:75:2a:f5
12 #ONBOOT=yes
13 #NETMASK=255.255.255.0
14 #NM_CONTROLLEDNM_CONTROLLED=
~
samba配置文件smb.conf:
243 ; map system = no
244 ; store dos attributes = yes
245
246
247 #============================ Share Definitions ==============================
248
249 [homes]
250 comment = Home Directories
251 browseable = no
252 writable = yes
253 ; valid users = %S
254 ; valid users = MYDOMAIN%S
255
256 [printers]
257 comment = All Printers
258 path = /var/spool/samba
259 browseable = no
260 guest ok = no
261 writable = no
262 printable = yes
263
264 [opt]
265 comment = share directory opt
266 path = /opt
267 browseable = yes
268 writable = yes
269 public = yes
270 guest ok = yes
271
272 [share]
273 comment = share directory /shar
274 path = /share
275 browseable = yes
276 writable = yes
277 public = yes
278 guest ok = yes
279
280 [henk_example]
281 comment = share directory /henk_example
282 path = /henk_example
283 browseable = yes
284 writable = yes
285 public = yes
286 guest ok = yes
287 # Un-comment the following and create the netlogon directory for Domain Logons
288 ; [netlogon]
289 ; comment = Network Logon Service
290 ; path = /var/lib/samba/netlogon
以前直接连进去,关机后第二天就连不进去了,这好像发不了图片。。。
工具-》映射网络驱动器
文件夹我填的是: \10.10.0.100opt
求救!
虚拟机:fc6
通过samba实现主机与虚拟机下的linux共享
通过工具里的映射网络驱动器可以连接到liux里samba设置的目录(以前可以,现在不行了。。。。什么也没动过)
ifcfg-eth0配置:
2 DEVICE=eth0
3 HWADDR=00:0c:29:75:2a:f5
4 BOOTPROTO=static
5 IPADDR=10.10.0.100
6 NETMASK=255.255.255.0
7
8
9 #DEVICE=eth0
10 #BOOTPROTO=dhcp
11 #HWADDR=00:0c:29:75:2a:f5
12 #ONBOOT=yes
13 #NETMASK=255.255.255.0
14 #NM_CONTROLLEDNM_CONTROLLED=
~
samba配置文件smb.conf:
243 ; map system = no
244 ; store dos attributes = yes
245
246
247 #============================ Share Definitions ==============================
248
249 [homes]
250 comment = Home Directories
251 browseable = no
252 writable = yes
253 ; valid users = %S
254 ; valid users = MYDOMAIN%S
255
256 [printers]
257 comment = All Printers
258 path = /var/spool/samba
259 browseable = no
260 guest ok = no
261 writable = no
262 printable = yes
263
264 [opt]
265 comment = share directory opt
266 path = /opt
267 browseable = yes
268 writable = yes
269 public = yes
270 guest ok = yes
271
272 [share]
273 comment = share directory /shar
274 path = /share
275 browseable = yes
276 writable = yes
277 public = yes
278 guest ok = yes
279
280 [henk_example]
281 comment = share directory /henk_example
282 path = /henk_example
283 browseable = yes
284 writable = yes
285 public = yes
286 guest ok = yes
287 # Un-comment the following and create the netlogon directory for Domain Logons
288 ; [netlogon]
289 ; comment = Network Logon Service
290 ; path = /var/lib/samba/netlogon
以前直接连进去,关机后第二天就连不进去了,这好像发不了图片。。。
工具-》映射网络驱动器
文件夹我填的是: \10.10.0.100opt
求救!
|
你关了机。。。。会不会是防火墙随机启动打开了。。。。关掉试试
|