Problem getting correct permissions on a group of users

In a new Ubuntu 22 install I created 4 users:
mainuser, user1, user2 and user3

I put all users in the group "users"
All permissions are 770 - which I thought would give anyone in the group access to each users files.

Logged in as mainuser - I can list all users folders
I can rsync all 3 users files to a folder called rsyncbackup in the mainuser without problem.

This command run as mainuser works correctly and syncs everything to my cloud instance:
rclone sync ./rsyncbackup/ webbackup:zak.webbackups/rsyncbackup --log-file /home/mainuser/logfile.txt

What is the problem you are having with rclone?

If I run this command as the mainuser:

rclone sync ./rsyncbackup/ webbackup:zak.webbackups/rsyncbackup --log-file /home/mainuser/logfile.txt

It does not work - i get this in the log file:
024/01/08 13:00:56 ERROR : : failed to open directory "": open /home/user1: permission denied
2024/01/08 13:00:56 ERROR : S3 bucket zak.webbackups path user1: not deleting files as there were IO errors

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.0

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.2.0-39-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: snap

Which cloud storage system are you using? (eg Google Drive)

Wasabi

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone sync ./rsyncbackup/ webbackup:zak.webbackups/rsyncbackup --log-file /home/mainuser/logfile.txt

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[webbackup]
type = s3
provider = Wasabi
access_key_id = XXX
secret_access_key = XXX
endpoint = s3.ca-central-1.wasabisys.com
acl = private

A log from the command that you were trying to run with the -vv flag

2024/01/08 13:05:08 DEBUG : rclone: Version "v1.65.0" starting with parameters ["/snap/rclone/486/bin/rclone" "sync" "/home/user1/" "webbackup:zak.webbackups>
2024/01/08 13:05:08 DEBUG : Creating backend with remote "/home/user1/"
2024/01/08 13:05:08 DEBUG : Using config file from "/home/mainuser/snap/rclone/486/.config/rclone/rclone.conf"
2024/01/08 13:05:08 DEBUG : fs cache: renaming cache item "/home/user1/" to be canonical "/home/user1"
2024/01/08 13:05:08 DEBUG : Creating backend with remote "webbackup:zak.webbackups/user1"
2024/01/08 13:05:08 DEBUG : Resolving service "s3" region "us-east-1"
2024/01/08 13:05:08 ERROR : : failed to open directory "": open /home/user1: permission denied
2024/01/08 13:05:08 DEBUG : S3 bucket zak.webbackups path user1: Waiting for checks to finish
2024/01/08 13:05:08 DEBUG : S3 bucket zak.webbackups path user1: Waiting for transfers to finish
2024/01/08 13:05:08 ERROR : S3 bucket zak.webbackups path user1: not deleting files as there were IO errors
2024/01/08 13:05:08 ERROR : S3 bucket zak.webbackups path user1: not deleting directories as there were IO errors
2024/01/08 13:05:08 ERROR : Attempt 1/3 failed with 2 errors and: not deleting files as there were IO errors
2024/01/08 13:05:08 ERROR : : failed to open directory "": open /home/user1: permission denied
2024/01/08 13:05:09 DEBUG : S3 bucket zak.webbackups path user1: Waiting for checks to finish
2024/01/08 13:05:09 DEBUG : S3 bucket zak.webbackups path user1: Waiting for transfers to finish
2024/01/08 13:05:09 ERROR : S3 bucket zak.webbackups path user1: not deleting files as there were IO errors
2024/01/08 13:05:09 ERROR : S3 bucket zak.webbackups path user1: not deleting directories as there were IO errors
2024/01/08 13:05:09 ERROR : Attempt 2/3 failed with 2 errors and: not deleting files as there were IO errors
2024/01/08 13:05:09 ERROR : : failed to open directory "": open /home/user1: permission denied
2024/01/08 13:05:09 DEBUG : S3 bucket zak.webbackups path user1: Waiting for checks to finish
2024/01/08 13:05:09 DEBUG : S3 bucket zak.webbackups path user1: Waiting for transfers to finish
2024/01/08 13:05:09 ERROR : S3 bucket zak.webbackups path user1: not deleting files as there were IO errors
2024/01/08 13:05:09 ERROR : S3 bucket zak.webbackups path user1: not deleting directories as there were IO errors
2024/01/08 13:05:09 ERROR : Attempt 3/3 failed with 2 errors and: not deleting files as there were IO errors
2024/01/08 13:05:09 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 2 (retrying may help)
Elapsed time:         0.3s

2024/01/08 13:05:09 DEBUG : 7 go routines active
2024/01/08 13:05:09 Failed to sync with 2 errors: last error was: not deleting files as there were IO errors

welcome to the forum,

snap, by default, does not have permissions to homedir.
so you need to adjust snap permissions or use the official rclone installer.

https://rclone.org/install/#script-installation


Thank you asdffdsa - that did it!
Uninstalled the rclone snap, installed using the script in the link and it worked as I though it should.
Didn't know snaps had that "feature" - I want my hours back!!!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.