smb安装配置

这篇博客详细介绍了Samba服务器的配置,包括工作组、服务器字符串、NetBIOS名称、网络接口、访问控制和安全设置。重点讨论了用户权限、密码数据库和共享文件夹的配置,适合IT管理员和开发者了解Samba环境管理。
摘要由CSDN通过智能技术生成
[global]

	workgroup = WORKGROUP
	server string = Samba Server Version %v

	netbios name = FTPServer

	interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
	hosts allow = 10.10.3. 10.10.4. 10.10.5. 10.10.6.


	# logs split per machine
	log file = /var/log/samba/log.%m
	# max 50KB per log file, then rotate
	max log size = 50

;	security = user
	security = share
	passdb backend = tdbsam
	guest account = root


;	security = domain
;	passdb backend = tdbsam
;	realm = MY_REALM
;	password server = <NT-Server-Name>
;	security = user
;	passdb backend = tdbsam

;	domain master = yes
;	domain logons = yes

	# the login script name depends on the machine name
;	logon script = %m.bat
	# the login script name depends on the unix user used
;	logon script = %u.bat
;	logon path = \\%L\Profiles\%u
	# disables profiles support by specifing an empty path
;	logon path =

;	add user script = /usr/sbin/useradd "%u" -n -g users
;	add group script = /usr/sbin/groupadd "%g"
;	add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
;	delete user script = /usr/sbin/userdel "%u"
;	delete user from group script = /usr/sbin/userdel "%u" "%g"
;	delete group script = /usr/sbin/groupdel "%g"


;	local master = no
;	os level = 33
;	preferred master = yes


;	wins support = yes
;	wins server = w.x.y.z
;	wins proxy = yes

;	dns proxy = yes


;	load printers = yes
	cups options = raw
;	printcap name = /etc/printcap
	#obtain list of printers automatically on SystemV
;	printcap name = lpstat
;	printing = cups
;	map archive = no
;	map hidden = no
;	map read only = no
;	map system = no
;	store dos attributes = yes

;[homes]
;	comment = Home Directories
;	browseable = no
;	writable = yes
;	valid users = %S
;	valid users = MYDOMAIN\%S

;[printers]
;	comment = All Printers
;	path = /var/spool/samba
;	browseable = no
;	guest ok = no
;	writable = no
;	printable = yes

;	[netlogon]
;	comment = Network Logon Service
;	path = /var/lib/samba/netlogon
;	guest ok = yes
;	writable = no
;	share modes = no


;	[Profiles]
;	path = /var/lib/samba/profiles
;	browseable = no
;	guest ok = yes


;	[public]
;	comment = Public Stuff
;	path = /home/samba
;	public = yes
;	writable = yes
;	printable = no
;	write list = +staff
	[video]
	comment = 4kgarden video
	path = /u01
	browseable = yes
	available = yes
	writable = yes
	public = yes
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值