SUSE12SP3-Samba configuration

Introduction

Samba official website: https://www.samba.org/

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

Samba, is a kind of free software used to link the operating system of the UNIX series with the SMB/CIFS (Server Message Block/Common Internet File System) network protocol of the Microsoft Windows operating system. The third version can not only access and share SMB folders and printers, it can also be integrated into the Windows Server domain, acting as a domain controller (Domain Controller) and joining Active Directory members. In short, this software builds a bridge between Windows and UNIX series operating systems, allowing the resources of the two to communicate with each other.

installation

SUSE12SP3 does not need to be installed, the system is installed by default.

Configuration

 [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

Self-start sudo systemctl enable smb.service

Self-start sudo systemctl enable nmb.service

Authority
chmod 777 -R /home/allspark/allspark/

Backup
cp smb.conf smb.confbak

Reboot
service smb restart
service nmb restart

Guess you like

Origin blog.csdn.net/qq_45533841/article/details/112709503