What app is this about, and its version: Nextcloud 34.0.1~ynh1
What YunoHost version are you running: 12.1.40.1
What type of hardware are you using: VPS bought online
Describe your issue
I am trying to install a second Nextcloud. The installation proceeds without issue, I can use the app, etc.
However: the installation systematically changes the permissions of all user dirs, as far as I can see, including admin.
Only reason I notice is that this disables SSH access to my server.
Originally, I just removed the nextcloud__2 group manually from the relevant dirs (chmod g-w /home/admin, setfacl -R -x g:nextcloud__2 /home/admin, etc.).
However, every upgrade will reset these ACLs.
I don’t believe this is expected, as I already have Nextcloud on my system and I can’t see it changing ACLs on any user. I think the ACLs issue might have bitten someone else here too: Nextcloud multimedia files (external storage) belonging to all users are visible to all users
Share relevant logs or error messages
Before:
➜ ~ getfacl /home/admin
getfacl: Removing leading '/' from absolute path names
# file: home/admin
# owner: admin
# group: 1007
user::rwx
group::r-x
mask::r-x
other::---
default:user::rwx
default:group::r-x
default:mask::r-x
default:other::---
After:
➜ ~ getfacl /home/admin
getfacl: Removing leading '/' from absolute path names
# file: home/admin
# owner: admin
# group: 1007
user::rwx
group::r-x
group:nextcloud__2:rwx
mask::rwx
other::---
default:user::rwx
default:group::r-x
default:group:nextcloud__2:rwx
default:mask::rwx
default:other::---
➜ ~ ls -ld /home/admin /home/admin/.ssh /home/admin/.ssh/authorized_keys
drwxrwx---+ 11 admin 1007 4096 /home/admin
drwxrwx---+ 2 admin 1007 4096 /home/admin/.ssh
-rw-rw----+ 1 admin 1007 273 /home/admin/.ssh/authorized_keys
What I had to do to re-enable SSH:
chmod g-w /home/admin
chmod 700 /home/admin/.ssh
chmod 600 /home/admin/.ssh/authorized_keys