Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied
-
I'm moving my backups (from an internal disk..I know I know
) to an USB external disk (ext4).
The disk is mounted as /media/bernat/owncloud/ and permissions are:
drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloudBefore changing the config in Cloudron I've created the directory on the external USB disk:
The yellowtent user/group owns this directory (/media/bernat/owncloud/cloudron-backups) recursively.
This is the change I try to make:
When I try to change the backup location in Cloudron UI I get a failure:
Directory does not exist or cannot be accessed: EACCES: permission denied, stat '/media/bernat/owncloud/cloudron-backups'
I've not restarted Cloudron yet.
Any help appreciated! I'm sure I've not done something, or done something in the wrong order. Does the whole disk need to be owned by my username?
-
I'm moving my backups (from an internal disk..I know I know
) to an USB external disk (ext4).
The disk is mounted as /media/bernat/owncloud/ and permissions are:
drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloudBefore changing the config in Cloudron I've created the directory on the external USB disk:
The yellowtent user/group owns this directory (/media/bernat/owncloud/cloudron-backups) recursively.
This is the change I try to make:
When I try to change the backup location in Cloudron UI I get a failure:
Directory does not exist or cannot be accessed: EACCES: permission denied, stat '/media/bernat/owncloud/cloudron-backups'
I've not restarted Cloudron yet.
Any help appreciated! I'm sure I've not done something, or done something in the wrong order. Does the whole disk need to be owned by my username?
-
@ei8fdb it's a permissions issue.
make it look like:
drwx-----x 20 www-data www-data 4096 Nov 8 09:18 owncloud
.........^
-
@robi That's what I was thinking - my username is bernat. Does the whole dis need to be owned by that user?
-
@robi said in Move backup to external EXT4 (USB) disk error: Directory does not exist or cannot be accessed: EACCES: permission denied:
@ei8fdb no, just chmod o+x on all dirs leading up to the backup dir.
Chmod to 755?
-
I'm moving my backups (from an internal disk..I know I know
) to an USB external disk (ext4).
The disk is mounted as /media/bernat/owncloud/ and permissions are:
drwx------ 20 www-data www-data 4096 Nov 8 09:18 owncloudBefore changing the config in Cloudron I've created the directory on the external USB disk:
The yellowtent user/group owns this directory (/media/bernat/owncloud/cloudron-backups) recursively.
This is the change I try to make:
When I try to change the backup location in Cloudron UI I get a failure:
Directory does not exist or cannot be accessed: EACCES: permission denied, stat '/media/bernat/owncloud/cloudron-backups'
I've not restarted Cloudron yet.
Any help appreciated! I'm sure I've not done something, or done something in the wrong order. Does the whole disk need to be owned by my username?
@ei8fdb The issue is most likely permissions of the parent directory i.e
/media/bernat/owncloud
. What is the output ofls -l /media/bernat/owncloud
?Make sure the directory has 'rx' for others. So,
chmod o+rx /media/bernat/owncloud
. This is because the backup code accesses the directory as "yellowtent" user. Without the rx, it cannot read and cd into the parent directory. -
@ei8fdb The issue is most likely permissions of the parent directory i.e
/media/bernat/owncloud
. What is the output ofls -l /media/bernat/owncloud
?Make sure the directory has 'rx' for others. So,
chmod o+rx /media/bernat/owncloud
. This is because the backup code accesses the directory as "yellowtent" user. Without the rx, it cannot read and cd into the parent directory.