[Samba] Samba VFS recyclebin hide

Brad C bradmailinglist at gmail.com
Tue Sep 9 12:30:26 GMT 2008

Hi Guys & Girls,

Samba VFS Recyclebin is a brilliant feature but I need to figure a way to
make it non-visible to end users as often files deleted are done so
The VFS module defaulty places the Recyclebin directory in the of whichever
share it is active on, Ive tried a couple of ways to hide it but none
hide files veto files... ?

smb.conf below

workgroup = Companyx
netbios name = server
server string = MBB Samba Server
name resolve order = wins bcast files
log level = 3
username map = /etc/samba/users.map
security = user
load printers = no
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY
local master = yes
domain master = yes
preferred master = yes
domain logons = yes
dns proxy = no
wins support = yes
time server = Yes
add user script = /usr/sbin/useradd -s /bin/false -g users -m %u
add group script = /usr/sbin/groupadd %g
add machine script = /usr/sbin/useradd -s /bin/false -g computers -c PC %u
delete user script = /usr/sbin/userdel %u
delete group script = /usr/sbin/groupdel %g
logon path =
logon home =
logon script = %u.bat

comment = Home Directories
browseable = no
writable = no

force user = samba
comment = Network Logon Service
path = /data/netlogon
guest ok = yes
writeable = yes
write list = administrator
share modes = no

force user = samba
comment = Public Data
path = /data/public
writeable = yes
valid users = @users, administrator,
write list = @users, administrator,
hide dot files = yes
vfs objects = recycle
recycle:repository = .recyclebin/%U
recycle:directory_mode = 0770
recycle:keeptree = Yes
recycle:touch_mtime = Yes
recycle:versions = Yes
recycle:maxsize = 0

More information about the samba mailing list