@returntrip
Look at the very last character of the permissions letters.
Before mounting, it is x. After mounting it is + which indicates the sticky bit has been applied to force permssions.
With it mounted, sudo chmod 0755 /mount/point’ to clear the sticky bit.
Sticky bits are those 3 bits (1 octal digit) before the main 755/644.
@ChuckPA said:
@returntrip
Look at the very last character of the permissions letters.
Before mounting, it is x. After mounting it is + which indicates the sticky bit has been applied to force permssions.
With it mounted, sudo chmod 0755 /mount/point’ to clear the sticky bit.
Sticky bits are those 3 bits (1 octal digit) before the main 755/644.
OK I have finally understood what was wrong.
Nextcloud seem to set the data folder permissions to 770 every time the httpd service is started/restarted. I believe it is set in such way so that users can’t read each other files (because they are unable to traverse directories)
@ChuckPA: in my case the + is present because I have mounted the FS with the acl flag and given user plex "x" access to the data folder by using setfacl -m "u:plex:x" /usr/share/webapps/nextcloud/data
Thanks @BigWheel and @ChuckPA for helping me getting my head around this issue.