Re: BUG #15810: Using custom directory on external HDD givespermission error

Поиск
Список
Период
Сортировка
От Omer Ozarslan
Тема Re: BUG #15810: Using custom directory on external HDD givespermission error
Дата
Msg-id CAMsVCmWy9bfCjrA6OoiEX7YcyXdpuskZFs+KDCXY7sW8Uk_+6A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #15810: Using custom directory on external HDD givespermission error  (Omer Ozarslan <omerfaruko@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Omer Ozarslan
Дата:
Сообщение: Re: BUG #15810: Using custom directory on external HDD givespermission error
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #15810: Using custom directory on external HDD gives permission error