<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on Updating the locate database in Mac OS X</title>
    <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x</link>
    <description>Neil Ang Comment Feed</description>
    <language>en-us</language>
    <generator>Symphony (build 1701)</generator>
    <item>
      <title>Telmo Dias commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-103</link>
      <pubDate>Sat, 01 Nov 2008 21:43:28 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-103</guid>
      <description>&lt;p&gt;Thank you very much!&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>JeffRichards commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-92</link>
      <pubDate>Tue, 08 Jul 2008 18:08:12 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-92</guid>
      <description>&lt;p&gt;This is the reason to love the internet, You can read through the man pages (which does tell you how to do this), or just do a simple search and BANGO, you have your answer. &lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>Batuhan commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-91</link>
      <pubDate>Sun, 22 Jun 2008 14:55:00 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-91</guid>
      <description>&lt;p&gt;Thanks!&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>xenon commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-79</link>
      <pubDate>Wed, 28 May 2008 11:39:34 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-79</guid>
      <description>&lt;p&gt;thanks man!&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>Si commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-59</link>
      <pubDate>Sat, 15 Dec 2007 21:31:35 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-59</guid>
      <description>&lt;p&gt;Hi Neil. Thanks for the post, it worked for me. Now I just have to cron the command. I really love your blog's theme, by the way!&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>dan commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-58</link>
      <pubDate>Mon, 10 Dec 2007 17:00:16 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-58</guid>
      <description>&lt;p&gt;Thanks, didn't want to wait for Saturday at 4:30AM!&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>Jay commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-57</link>
      <pubDate>Thu, 06 Dec 2007 15:31:40 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-57</guid>
      <description>&lt;p&gt;I would highly recommend chmod'ing your locate binary and database so that only root has access to perform locate searches.  As it says in Leopard when you perform the initial locate database creation: &amp;quot;This WILL reveal all filenames on your machine to all login users, which is a security risk.&amp;quot;&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>Neil Ang commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-56</link>
      <pubDate>Tue, 27 Nov 2007 12:06:49 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-56</guid>
      <description>&lt;p&gt;&lt;strong&gt;Shlomo&lt;/strong&gt; &amp;ndash; I'm the only user on my computer, so I didn't consider this as a problem.&lt;/p&gt;
&lt;p&gt;Off the top of my head, there are 2 options that come to mind:&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;The comment by Tony Arnold (above) explains how you can associate the locate database with spotlight. This might give you the desired effect.&lt;/li&gt;
&lt;li&gt;Your error occurs on line 89, which is when it trys to write to the file &lt;kbd&gt;/var/db/locate.database&lt;/kbd&gt;. You could try and chmod this file so your user account has write permission, and try again. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;N.B. I've never tested these options, and don't know that the outcome will be. Only try them if you are confident you won't break anything.&lt;/em&gt; Please let me know if these do work out for you, thanks.&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>Shlomo commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-55</link>
      <pubDate>Mon, 26 Nov 2007 19:12:03 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-55</guid>
      <description>&lt;p&gt;I get the following warning:&lt;/p&gt;
&lt;p&gt;shlomo$ sudo /usr/libexec/locate.updatedb 
Password: ********
&amp;gt;&amp;gt;&amp;gt; WARNING
&amp;gt;&amp;gt;&amp;gt; Executing updatedb as root.  This WILL reveal all filenames
&amp;gt;&amp;gt;&amp;gt; on your machine to all login users, which is a security risk.&lt;/p&gt;
&lt;p&gt;When I leave off the &amp;quot;sudo&amp;quot; then, after about ten minutes, I get:&lt;/p&gt;
&lt;p&gt;/usr/libexec/locate.updatedb: line 89: /var/db/locate.database: Permission denied&lt;/p&gt;
&lt;p&gt;So how do I index only what my user can see but still write to the db file?&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
    <item>
      <title>f1Sh commented on Updating the locate database in Mac OS X</title>
      <link>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-41</link>
      <pubDate>Wed, 21 Nov 2007 15:32:29 GMT</pubDate>
      <guid>http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment-41</guid>
      <description>&lt;p&gt;Very nice hint! Thanks for the update, it made me crazy to look for the reason!&lt;/p&gt;
					     &lt;p&gt;&lt;a title="What are you, chicken?!" href="http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/#comment"&gt;Post a reply&lt;/a&gt; (I dare you!)&lt;/p&gt;
					   </description>
    </item>
  </channel>
</rss>
