Samba回收站,查看用户操作哪些文件

首先查看有没有安装vfs软件包
samba-vfs-glusterfs-4.6.2-8.el7.x86_64.rpm
日志级别调高
log level = 3 最高为10

sam.conf文件
[global]

        log level =3
        passdb backend = tdbsam
        vfs object = vfs  \#加载vfs模块
        vfs object = audit
        vfs object = full_audit
        vfs object = extd_audit

[homes]

vfs object = vfs
vfs object = audit
vfs object = full_audit
vfs object = extd_audit
full_audit:prefix = %u|%I|%m|%S
full_audit:failure = connect
full_audit:sucess = connect disconnect opendir mkdir rmdir closedir open close fchmod  fchown chown chdir
full_audit:facility = local5
full_audit:priority = notice
#开启回收站 
vfs object = recycle
#回收站的相对路径(samba暂时支持相对路径,%U代表用户名,Samba会自动创建一个以用户名命名的文件夹来存放某个用户删除的文件)
recycle:repository = .recycle/%U
#移动到回收站建立相应的目录结构
recycle:keeptree = yes
#区分回收站已有的同名文件
recycle:versions = yes
#回收站最大容量,0代表无限制 
recycle:maxsize = 50 

comment = share all
path = /tmp/samba
browseable = yes
public = yes 
writable = yes
valid  users = ymd

recycle:maxsize = 50

你可能感兴趣的:(Samba回收站,查看用户操作哪些文件)