Re: initdb in C

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: initdb in C
Date: 2003-11-08 17:55:18
Message-ID: 3FAD2E06.50409@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32 pgsql-patches

Tom Lane wrote:

>Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>
>
>>>Consider also the strong likelihood that the data directory's parent
>>>directory is owned by root,
>>>
>>>
>
>
>
>>Again, this directory recreate happens only on Win32, an I thought it
>>would be OK there.
>>
>>
>
>Windows has no concept of directory permissions at all? I thought the
>more recent versions had at least rudimentary permissions.
>

More than rudimentary on the server versions.

I found this info at http://www.cs.wayne.edu/labPages/modes.htm :

Windows ACLs

Windows NT and Windows 2000 uses Access Control Lists or ACLs to
determine what operations a user may perform on a file. Windows ACLs
allow one to set permissions with finer control that does the Unix file
mode. For example, one can all[ow] a user to append data to a file as
opposed to overwiting the file. ACLs also allow one to permit specific
users to change the permissions on a file. Perhaps the biggest
difference is that ACLs allow us to accord permissions on a user-by-user
basis, rather than the three categories of users permitted by Unix file
systems.

This info applies to directories as well as plain files AFAIK

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-11-08 17:57:25 Re: [PATCHES] initdb in C
Previous Message Bruce Momjian 2003-11-08 17:39:59 Re: initdb in C

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Bruce Momjian 2003-11-08 17:57:25 Re: [PATCHES] initdb in C
Previous Message Bruce Momjian 2003-11-08 17:39:59 Re: initdb in C

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-11-08 17:57:25 Re: [PATCHES] initdb in C
Previous Message Bruce Momjian 2003-11-08 17:39:59 Re: initdb in C