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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
