Remi Mommsen wrote: > Hi Robert, > > On Jul 3, 2009, at 8:48 PM, Robert Wyatt wrote: > >> On 10.5 using the unstable tree and everything being current I've been >> getting a message in Terminal.app when I run freshclam: >> ERROR: Can't open mirrors.dat for writing > > I guess you are running freshclam as your normal user. I would > recommend to use 'sudo freshclam', i.e. use root.
I see. That makes sense. > >> I compared permissions on >> -rw------- /sw/var/db/clamav/mirrors.dat >> -rw-rw-r-- /usr/local/clamXav/share/clamav/mirrors.dat >> >> and updated the fink version with: >> sudo chmod 644 /sw/var/db/clamav/mirrors.dat > > I think that wont help, as the normal user still cannot write to it. > (It should be chmod 664 if you want the same permissions.) However, > allowing the group to write to the mirrors.dat is in principle a > security risk. But it depends how paranoid you want to be... > > Remi Oops, I did use 664, that was a transcription error, but I see your point. I will revert the permissions and use sudo freshclam from now on. Thanks for the input! > >> I think I have to wait until tomorrow to do another freshclam to see >> if >> I get the same error. That is, I've tried freshclam again and do not >> see >> the error, but then the database is not updated (because it already >> was >> today) so I don't know if there is an attempt made to update >> mirrors.dat. >> >> I suppose this is a note more than a question, but if you see a >> problem >> with what I've done please let me know. >> >> --Robert > > -- > I haven't lost my mind - it's backed up on my disk somewhere. > > ********************************************************************* > Remigius K. Mommsen e-mail: [email protected] > Fermilab URL: http://cern.ch/mommsen > CERN 40 2-B06 voice: +41 22 767 1621 > CH-1211 Genève 23 mobile: +41 78 798 2535 > Switzerland skype: remi.mommsen > ********************************************************************* ------------------------------------------------------------------------------ _______________________________________________ Fink-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-users
