BumQ

วันเสาร์ที่ 7 เมษายน พ.ศ. 2555

การเปิดใช้ Recycle Bin สำหรับการแชร์ไฟล์

Enable Recycle Bin for ibays

db accounts setprop ibayname RecycleBin enabled
db accounts setprop ibayname KeepVersions enabled 
signal-event ibay-modify ibayname
The first property enables the Recycle Bin feature. The second property KeepVersions ensures that when a file is deleted with the same name as one that was previously deleted the latest deleted file will be called “Copy #x of filename”.

Enable Recycle Bin for users

db configuration setprop smb RecycleBin enabled
db configuration setprop smb KeepVersions enabled 

Expand the template...
/sbin/e-smith/expand-template /etc/samba/smb.conf Remember to restart service...
/etc/rc7.d/S91smb restart
 
The Recycle Bin folder will be created automatically the first time a file is deleted, so you will not see the folder until you delete something.
An admin can then go and retrieve the files on the server.
 

ไม่มีความคิดเห็น:

แสดงความคิดเห็น