Re: BUG #15810: Using custom directory on external HDD givespermission error - Mailing list pgsql-bugs

From Omer Ozarslan
Subject Re: BUG #15810: Using custom directory on external HDD givespermission error
Date
Msg-id CAMsVCmWy9bfCjrA6OoiEX7YcyXdpuskZFs+KDCXY7sW8Uk_+6A@mail.gmail.com
Whole thread Raw
In response to Re: BUG #15810: Using custom directory on external HDD givespermission error  (Omer Ozarslan <omerfaruko@gmail.com>)
List pgsql-bugs
On Thu, May 16, 2019 at 6:59 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
I think we do a chmod but we don't then check to see if stat reports
the correct permissions.  IIUC, the reporter is using a filesystem
that lacks permissions altogether and is just ignoring the chmod.
So later checks fail.

Yes, this is likely the case btw:

```
omer@omer:/media/omer/My Book/ris/postgres_data$ ls -al postgresql.conf
-rwxrwxrwx 1 omer omer 23902 May 16 11:06 postgresql.conf
omer@omer:/media/omer/My Book/ris/postgres_data$ chmod u=rwx,g=rx,o= postgresql.conf
omer@omer:/media/omer/My Book/ris/postgres_data$ echo $?
0
omer@omer:/media/omer/My Book/ris/postgres_data$ ls -al postgresql.conf
-rwxrwxrwx 1 omer omer 23902 May 16 11:06 postgresql.conf
```

Best,
Omer

pgsql-bugs by date:

Previous
From: Omer Ozarslan
Date:
Subject: Re: BUG #15810: Using custom directory on external HDD givespermission error
Next
From: Tom Lane
Date:
Subject: Re: BUG #15810: Using custom directory on external HDD gives permission error