精華區beta FreeBSD 關於我們 聯絡資訊
user透過samba存到home的資料若含有病毒(*.eml) 請教該如何刪會比較快呢? 範例:/home/kcj/My Documents/通知/捷徑 - (6) 我的電腦.eml 一筆一筆刪沒問題,但是要大量刪除時,windows下的空白字元就不知如何處理了!! 謝謝! -- Ξ Origin: 中興大學天樞資訊網 <[email protected]> [FROM: 163.17.181.11] > -------------------------------------------------------------------------- < 發信人: [email protected] (404 Request Not Found), 看板: FreeBSD 標 題: Re: samba與掃毒 發信站: KKCITY (Wed Mar 26 11:06:33 2003) 轉信站: Ptt!news.ntu!news.mcu!newsfeed.nthu!ctu-peer!news.nctu!freebsd.ntu!bbs ※ 引述《[email protected] (關公)》之銘言: > user透過samba存到home的資料若含有病毒(*.eml) > 請教該如何刪會比較快呢? > 範例:/home/kcj/My Documents/通知/捷徑 - (6) 我的電腦.eml > 一筆一筆刪沒問題,但是要大量刪除時,windows下的空白字元就不知如何處理了!! > 謝謝! find path -name "*.eml" -delete -- ┌─────KKCITY─────┐  ̄ ▌ ̄ ╲╱ BBS 城邦 bbs.kkcity.com.tw ╴ ▌ ▌ ▏ KK免費撥接 └──From:140.121.165.94 ──┘ http://www.kkcity.com.tw/freeisp/ > -------------------------------------------------------------------------- < 發信人: [email protected] (新的起跑點), 看板: FreeBSD 標 題: Re: samba與掃毒 發信站: 不良牛牧場 (Wed Mar 26 12:29:02 2003) 轉信站: Ptt!news.ntu!news.mcu!newsfeed.nthu!news.cs.nthu!News.Math.NCTU!news.s ※ 引述《[email protected] (關公)》之銘言: : user透過samba存到home的資料若含有病毒(*.eml) : 請教該如何刪會比較快呢? : 範例:/home/kcj/My Documents/通知/捷徑 - (6) 我的電腦.eml : 一筆一筆刪沒問題,但是要大量刪除時,windows下的空白字元就不知如何處理了!! : 謝謝! 空白處理方式... rm /home/kcj/My\ Documents/通知/捷徑\ -\ (6)\ 我的電腦.eml 或 rm "/home/kcj/My Documents/通知/捷徑 - (6) 我的電腦.eml" -- ╭──── Origin:<不良牛牧場> bbs.badcow.com.tw (210.200.247.200)─────╮ Welcome to SimFarm BBS -- From : [helloworld.m7.ntu.edu.tw] ◣◣◢ ◢◢不良牛免費撥接→電話:40586000→帳號:zoo→密碼:zoo ◣◣─╯ > -------------------------------------------------------------------------- < 發信人: [email protected] (蟲), 看板: FreeBSD 標 題: Re: samba與掃毒 發信站: 蟲之家 (Wed Mar 26 23:52:43 2003) 轉信站: Ptt!news.ntu!news.mcu!newsfeed.nthu!ctu-peer!spring!news.nctu!feeder.s ※ 引述《[email protected] (新的起跑點)》之銘言: > ※ 引述《[email protected] (關公)》之銘言: > : user透過samba存到home的資料若含有病毒(*.eml) > : 請教該如何刪會比較快呢? > : 範例:/home/kcj/My Documents/通知/捷徑 - (6) 我的電腦.eml > : 一筆一筆刪沒問題,但是要大量刪除時,windows下的空白字元就不知如何處理了!! > : 謝謝! > 空白處理方式... > rm /home/kcj/My\ Documents/通知/捷徑\ -\ (6)\ 我的電腦.eml > 或 > rm "/home/kcj/My Documents/通知/捷徑 - (6) 我的電腦.eml" find 目錄 -name "*.eml" -print 確認以後, 把 -print 改成 -delete -- ※ Origin: 蟲 之 家 <pcbug.twbbs.org> ◆ From: freebsd.private-ip > -------------------------------------------------------------------------- < 發信人: [email protected] (小蟲子), 看板: FreeBSD 標 題: Re: samba與掃毒 發信站: 清華資訊(楓橋驛站) (Thu Mar 27 00:07:58 2003) 轉信站: Ptt!news.ntu!news.mcu!newsfeed.nthu!news.nthu!news.cs.nthu!maple ※ 引述《[email protected] (關公)》之銘言: > user透過samba存到home的資料若含有病毒(*.eml) > 請教該如何刪會比較快呢? > 範例:/home/kcj/My Documents/通知/捷徑 - (6) 我的電腦.eml > 一筆一筆刪沒問題,但是要大量刪除時,windows下的空白字元就不知如何處理了!! > 謝謝! 前兩天在 samba 官方網站上面看到的文件 我想這份文件對你有幫助 http://us1.samba.org/samba/ftp/docs/README.Win32-Viruses 節錄後面叫符合你需要的部分 ----- [global] ... # This can break Administration installations of Office2k. # in that case, don't veto the riched20.dll veto files = /*.eml/*.nws/riched20.dll/ ----- Setting up "veto files" parameter, the matched files on the Samba server are completely hidden from the clients and become impossible to access them at all. In addition to it, the following setting are also pointed out by the samba-jp:09448 thread: when the "readme.txt.{3050F4D8-98B5-11CF-BB82-00AA00BDCE0B}" file exists on a Samba server, it is visible only with "readme.txt" and a dangerous code may be performed when this file is double-clicked. Setting the following, ----- veto files = /*.{*}/ ----- no files having CLSID in its file extension can be accessed from any clients. This technical article is created based on the discussion of samba-jp:09448 and samba-jp:10900 threads. -- 天真的人們一生都在追求光明的未來 同時也鄙夷有灰暗未來的人們 只是.... 失去了黑暗 那光明還能存在嗎 -- ※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: cdm-208-185-229-rsvl.cox-internet.com