配置windows系统的Ip地址
关闭防火墙
打开虚拟机的网络编辑器
查linux系统的Ip
查一下windows的IP
检查物理机和虚拟机的网络互通情况
进入主配置文件
建立Zhihua/zhihua.txt文件
配置主配置文件参数
[global]
----------------------- Network Related Options -------------------------## workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH## server string is the equivalent of the NT Description field## netbios name can be used to specify a server name not tied to the hostname## Interfaces lets you configure Samba to use multiple interfaces# If you have multiple network interfaces then you can list the ones# you want to listen on (never omit localhost)## Hosts Allow/Hosts Deny lets you restrict who can connect, and you can# specifiy it as a per share option as well#
workgroup = WORKGROUP
server string = Samba Server Version %v
; netbios name = MYSERVER
; interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
; hosts allow = 192.168.91.
----------------------- Standalone Server Options ------------------------## Scurity can be set to user, share(deprecated) or server(deprecated)## Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration.
security = share
passdb backend = tdbsam
[public]
comment = samba test
path = /Zhihua
public = yes
writable = yes
重启服务器
Windows 访问共享文件