Jonathan Rawle wrote:
An alternative approach (assuming your FC4 directories are backups you don't need them very often) is to make them unreadable by ordinary users. locate won't return files you wouldn't have permission to see in a directory listing. So you can chmod the directories so they are only readable by root, then they won't show up in locate results. If you ever do want to find something in those directories, run locate as root.
Won't work. The database for /locate/ is updated by a cron job that runs as root. So it will index the entire filesystem, except for exclusions set in updatedb.conf.
-- Regards Vivek J. Patankar Registered Linux User #374218 Fedora Core release 6 (Zod) Linux 2.6.18-1.2798.fc6 x86_64