Setfacl Permissions Issue

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.1.39
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: I was updating permissions using setfacl and updated the wrong directory

Describe your issue

I was using setfacl to update the permissions for audiobookshelf following some advice using this command

sudo setfacl -R -d -m u:audiobookshelf:rwx /mnt/hdd/home

sudo setfacl -R -m u:audiobookshelf:rwx /mnt/hdd/home

I hit enter too soon giving write privileges to the whole home directory vs just the specific audiobooks folder I intended.

etfacl: Removing leading ‘/’ from absolute path names

file: mnt/hdd/home

owner: root

group: root

user::rwx
user:audiobookshelf:r-x
group::r-x
mask::r-x
other::—
default:user::rwx
default:user:audiobookshelf:r-x
default:group::r-x
default:mask::r-x
default:other::—

This seems to have blocked my ability to access the home folder for backups via filezilla and I don’t seem to be able to add images to friendica as a result.

I believe the correct user for this directory is rwx but after googling I can’t seem to get a command to work.

I didn’t back up my ACL permissions (won’t do that again!) so looking for a way to restore the correct/default permissions on this folder, before resorting to a full reinstall

Share relevant logs or error messages

I attempted to reverse the same command I used that casued the problem but no luck

/$ sudo setfacl -R -m u:rwx:audiobookshelf /mnt/hdd/home
Option -m: Invalid argument near character 3