Raspberry Pi ownCloud: Your Personal Cloud Storage - Pi My Life Up
Additional Steps
File Permission
navas@raspberrypi5:~ $ ls -ld /mnt/HDD6/
drwxrwxr-x+ 29 www-data root 4096 Jun 15 15:53 /mnt/HDD6/
navas@raspberrypi5:~ $
add navas with full permission
The trailing + at the end of your directory permissions (drwxrwxr-x+) means this directory is using an Access Control List (ACL). Because ACLs are active, the standard Linux chown or chmod commands can sometimes clash with existing rules or Nextcloud/web server permissions (www-data).
The cleanest and most reliable way to grant your user navas full read, write, and execute permissions—both right now and for any future files created inside this folder—is to update the ACL using setfacl.
Run these two commands in your terminal:
Bash
# 1. Grant 'navas' full permissions to the directory and everything currently inside it
sudo setfacl -R -m u:navas:rwx /mnt/HDD6/
# 2. Set the default ACL so any new files/folders created here in the future automatically grant 'navas' full access
sudo setfacl -R -d -m u:navas:rwx /mnt/HDD6/