SUSE12SP3-Samba配置
程序员文章站
2022-08-19 21:46:45
简介 samba官网:https://www.samba.org/ *: https://zh.wikipedia.org/wiki/Samba Samba,是种用来让UNIX系列的操作系统与微软Windows操作系统的SMB/CIFS(Server Message Block/Common ......
简介
samba官网:
*:
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
上一篇: HTML基础学习心得分享
推荐阅读
-
acer aspire 4520 phpini中的php-520配置指令详解
-
php.ini 配置文件的深入解析
-
高配置数据库!戴尔T610送PNY 8GB优盘
-
Surge配置生成器 anti surge surge tank 倩碧moisture surge
-
实战在Ubuntu上配置Nginx+PHP+MySQL环境
-
nginx+tomcat配置https最简单方案
-
解读phpMyAdmin配置的具体方法
-
国际化资源文件配置
-
WINDOWS下php5.2.4+mysql6.0+apache2.2.4+ZendOptimizer-3.3.0配置
-
eclipse 运行php时,运行配置,和调试配置的设置