简介

samba官网:https://www.samba.org/

维基百科:

https://zh.wikipedia.org/wiki/Samba

Samba,是种用来让UNIX系列的操作系统与微软Windows操作系统的SMB/CIFS(Server Message Block/Common Internet File System)网络协议做链接的自由软件。第三版不仅可访问及分享SMB的文件夹及打印机,本身还可以集成入Windows Server的网域,扮演为网域控制站(Domain Controller)以及加入Active Directory成员。简而言之,此软件在Windows与UNIX系列操作系统之间搭起一座桥梁,让两者的资源可互通有无。

安装

SUSE12SP3无需安装,系统默认安装好了。

配置

 [global] # 全局配置
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client max protocol = NT1
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = no
read only = No
inherit acls = Yes
[allspark]
comment = Public
path = /home/allspark/allspark
public = yes
browseable = yes
writable = yes
available = yes
admin users = root
create mask = 0700
directory mask = 0700

开机自启 sudo systemctl enable smb.service

开机自启 sudo systemctl enable nmb.service

权限

chmod 777 -R /home/allspark/allspark/

备份

cp smb.conf smb.confbak

重启

service smb restart

service nmb restart

最新文章

  1. leetcode : Binary Tree Paths
  2. px和em
  3. HDU 5695 Gym Class 拓扑排序
  4. Qt String 与char* char int之间的转换
  5. 同一路由器不同vlan之间的通信(一)
  6. .net core 使用MD5加密解密字符串
  7. .net core 摸索之路
  8. q次询问,每次给一个x,问1到x的因数个数的和。
  9. JxBrowser之四:对Http Response Code的处理
  10. Docker容器学习梳理 - 容器时间跟宿主机时间同步
  11. Python 一个抓取糗百的段子的小程序
  12. SpringMVC实现从磁盘中下载文件
  13. JDK5.0特性-线程 Callable和Future
  14. Easyui中 messager出现的位置
  15. sikuli 安装
  16. 查看linux中某个端口(port)是否被占用
  17. mysql导入大量数据时报MySQL server has gone away错误的解决办法
  18. Java Learning Path(三)过程篇
  19. echarts使用中的那些事儿(二)
  20. hdu 5437(优先队列模拟)

热门文章

  1. Django框架(五)-- 视图层:HttpRequest、HTTPResponse、JsonResponse、CBV和FBV、文件上传
  2. Flask拾遗总汇1
  3. Removing Stones(2019年牛客多校第三场G+启发式分治)
  4. 微信2.1 for Windows发布 微信群可多人语音或视频通话
  5. 费马平方和定理&&斐波那契恒等式&&欧拉四平方和恒等式&&拉格朗日四平方和定理
  6. 虚拟机中Windows激活「很抱歉,程序无法在非MBR引导分区上进行激活」
  7. 踩iviewui中Tabs 标签页数据绑定坑
  8. Vue响应式原理以及注意事项
  9. Android apps for “armeabi-v7a” and “x86” architecture: SoC vs. Processor vs. ABI
  10. svn Server authz 配置示例(文件夹权限配置)