Stroller wrote: >> Personally, I just execute 'updatedb -e dir1,dir2,dir3 >> >> where dir1, etc. is the fully qualified path for a directory I want >> to exclude. > > Whilst this is practical on my current system, it wouldn't be should I > expand to 50... 500... 5000 users. So I guess that in that case I'd > have to write a script to read usernames from /etc/passwd & enter > "/home/$USERNAME/.Maildir" into PRUNPATHS, which is rather a chore. > Any other suggestions much appreciated.
Actually, the solution is to use the -e option. In the /etc/cron.daily/slocate script change the line the reads: /usr/bin/updatedb to: /usr/bin/updatedb -e $(echo /home/*/.Maildir | tr ' ' ',') When you execute the command updatedb, it always reads the /etc/updatedb.conf file, so all you are doing here is adding those directories to the exclude list that is defined in the updatedb.conf file. Regards, Paul -- [EMAIL PROTECTED] mailing list
