2010/09/10

[ FBSD ] Find and delete all Thumbs.db files

Windows XP 在瀏覽網芳的開放資料夾時會自動產生圖檔的縮圖暫存檔 Thunbs.db,這個資料夾會因使用者的不同而建立擁有者權限,當使用者想刪除資料夾時就會被拒絕,解決方式如下:

1. 在 samba 中設定不允許 nt acl

# vi smb.conf
nt acl support = no

2. 手動刪除全部的 Thunbs.db

Unix/Linux 下操作:
# find /mnt/soft/ -name "Thunbs.db" -exec rm '{}' \;

Windows 下操作:
C:\del D:\Thumb.db /f /s /q /a      # D代表你的硬碟D槽

0 意見: