« Xcode 3.1.2 crash is annoying | Main | The beginning of a bigger change ? »

Snow Leopard: That's not my Unix anymore...

I have this peculiar problem, that Postgres installs OK, but later can't really access it's database. The symptoms are peculiar:
$ ls -ld Postgres
drwx------  19 nat  staff  646 11 Sep 00:18 Postgres
$ sudo ls -ld Postgres
Password:
drwx------  19 _unknown  _unknown  646 11 Sep 00:18 Postgres
$ sudo su postgres -c 'ls -ld Postgres'
drwx------  19 postgres  daemon  646 11 Sep 00:18 Postgres
or
$ ls -ldn Postgres
drwx------  19 955  20  646 11 Sep 00:18 Postgres
$ sudo ls -ldn Postgres
drwx------  19 99  99  646 11 Sep 00:18 Postgres
$ sudo su postgres -c 'ls -ldn Postgres'
drwx------  19 956  1  646 11 Sep 00:18 Postgres
I don't see the advantage offhand of ls lying to me about the ownership of the file. Also it would appear that, Postgres shouldn't really mind, but nevertheless it does.

Comments (3)

Could your directory be on an external disc that's set to ignore ownership?

Nat! Author Profile Page:

Yes. Indeed the internal disc is set to ignore ownership. I suspect, this happened because I probably installed Snöw Leopard first onto an external disc, that I then placed into the machine.


Thanks for the solution.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on September 11, 2009 12:31 AM.

The previous post in this blog was Xcode 3.1.2 crash is annoying.

The next post in this blog is The beginning of a bigger change ?.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 4.25