linux系统下samba服务器的配置

配置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 访问共享文件
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值