lede icon indicating copy to clipboard operation
lede copied to clipboard

samba共享日志问题

Open lxwq opened this issue 7 years ago • 1 comments

想查看共享文件的读写日志,在「blobal」里加入log file = /var/log/samba/log.%m,可以看到在/var/log/samba/log.IP地址文件,但里面没有内容。共享字段里加入vfs objects = ful_audit参数后,共享名无法访问,是不是samba在编译时精简了一些组件啊?

lxwq avatar Jul 02 '19 06:07 lxwq

[global]
	netbios name = |NAME| 
	display charset = |CHARSET|
#	interfaces = |INTERFACES|
	server string = |DESCRIPTION|
	unix charset = |CHARSET|
	workgroup = |WORKGROUP|
	bind interfaces only = yes
	deadtime = 30
	enable core files = no
#	invalid users = root
	local master = no
	map to guest = Bad User
	max protocol = SMB2
	min receivefile size = 16384
	null passwords = yes
	passdb backend = smbpasswd
	security = user
	smb passwd file = /etc/samba/smbpasswd
	use sendfile = yes
	log file = /var/log/samba/log.%m
	max log size = 500
        log level = 0

[tmp]
#测试用
        path = /tmp
        read only = no
        guest ok = yes
        create mask = 0777
        directory mask = 0777
        browseable = yes
        #加上这句后,可以看到共享,但无法访问
	vfs objects = extd_audit
[var]
#测试用。可以看到共享,可读写文件,但日志里什么都没有        
	path = /var
        read only = no
        guest ok = yes
        create mask = 0777
        directory mask = 0777
        browseable = yes

lxwq avatar Jul 04 '19 00:07 lxwq