PDA

Показать полную графическую версию : [решено] сетевая корзина


slaine
01-03-2008, 12:13
Люди, как спрятать корзину от windows пользователей?
hide dot files = yes не помогает, вот мой конфиг:
[global]

unix extensions = no

workgroup = samba
netbios name = server
server string = Samba Server
allow trusted domains = yes
hosts allow = 192.168.11.

admin users = root
idmap uid = 10000-20000
idmap gid = 10000-20000


printcap name = /etc/printcap
load printers = yes

; printing = cups

cups options = raw

guest account = nobody

log file = /var/log/samba/%m.log
# log file = /var/log/samba/log.smbd

max log size = 50

security = share

password server = server

; password level = 8
; username level = 8

encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

; 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*

username map = /etc/samba/smbusers

; include = /etc/samba/smb.conf.%m

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

interfaces = 192.168.11.0/24

; remote browse sync = 192.168.3.25 192.168.5.255

; remote announce = 192.168.1.255 192.168.2.44

local master = yes
os level = 65
domain master = yes
preferred master = yes
domain logons = yes

debug level = 1
write chache size = 262144
level2 oplocks = true

nt acl support = yes
time server = yes

; logon script = %m.bat
; logon script = %U.bat

; logon path = \\%L\Profiles\%U

name resolve order = lmhosts bcast

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

dns proxy = no

; preserve case = no
; short preserve case = no
default case = lower
case sensitive = no
dos charset = CP1251
unix charset = CP1251
display charset = LOCALE

#============================ Share Definitions ==============================
...

[public]
comment = Public Stuff
path = /home/public
public = yes
read only = no
#vfs object = vscan-clamav
#vscan-clamav:config-file = /etc/samba/vscan-clamav.conf
vfs objects = recycle
hide dot files = yes
recycle:repository = .recycle
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes

[tmp]
comment = dc
path = /tmp
public = yes
read only = no

BuGfiX
01-03-2008, 12:28
У меня тоже не получалось, только я смысла прятать ее непонял. Ведь можно сделать для каждого пользователя свою корзину и другим не давать к ней доступа. А если она не видна - стало быть пользователь восстанавливать свои файлы не сможет.

slaine
02-03-2008, 02:36
solved :cool
В шаре пишем строчку:
veto files = /.*/




© OSzone.net 2001-2012