* Jakub Jankowski <[EMAIL PROTECTED]> [20031203 18:33]: wrote: > On 2003-12-03, Odhiambo Washington wrote: > > >Ok. Something like this will help... > > > >find / -name "clamav.conf -exec cp /etc/ {} \; > > Even if its syntax would be correct, it wouldn't work as expected by > you. ;) > > >find / -type f -name "clamav.conf" | xargs cp /etc/clamav.conf > > You end up with a broken clamav setup if some your user placed a hostile > clamav.conf file somewhere in a filesystem, and for some reason your > find visits that place as the last one. > > I wouldn't recommend your solution, especially over reading docs.
Yeah. I think my hands were faster than my brain in this. Thanks for the correction. But surely, there was none in /etc previously, no? I did not stop to think about a hostile user. You are right about this but users with shell access on production systems _must_ be disciplined users, otherwise they will put your ass on fire;) cheers - wash +----------------------------------+-----------------------------------------+ Odhiambo Washington . WANANCHI ONLINE LTD (Nairobi, KE) | <wash at wananchi dot com> . 1ere Etage, Loita Hse, Loita St., | GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI | GSM: (+254) 733 744 121 . (+254) 020 313 985 - 9 | +---------------------------------+------------------------------------------+ "Oh My God! They killed init! You Bastards!" --from a /. post
smime.p7s
Description: S/MIME cryptographic signature