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