Linux: permission problem with /etc

What is the problem you are having with rclone?

After upgrading from one version of Linux Mint to another - an upgrade that, I read somewhere, resets (some?) .conf files in /etc - my usual Bash rclone script throws a permission error.

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

rclone v1.67.0

  • os/version: linuxmint 22 (64 bit)
  • os/kernel: 6.8.0-39-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none

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

b2

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

rclone sync --b2-chunk-size=96Mi --b2-hard-delete \
--backup-dir=enc-b2:/X230/old/m07d28/etc --bwlimit=7M --checkers=12 --fast-list \
--filter-from=/home/nicholas/NJ/Backup/BackupSetup/rclone/lists/etc_filter-from \
--local-no-check-updated --log-file /tmp/rclone_daily_jSQ --log-level=ERROR \
--one-file-system -P --retries=6 --skip-links --stats=0 --stats-one-line --timeout=2m \
--tpslimit=0 --tpslimit-burst=1 --transfers=16 /etc enc-b2:/X230/current/etc

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

[b2]
type = b2
account = XXX
key = XXX
hard_delete = true

[box]
type = box
token = XXX

[enc-b2]
type = crypt
remote = b2:x1[redacted]
filename_encryption = standard
password = XXX
password2 = XXX

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

2024/07/28 23:43:02 ERROR : credstore: failed to open directory "credstore": open /etc/credstore: permission denied
2024/07/28 23:43:02 ERROR : credstore.encrypted: failed to open directory "credstore.encrypted": open /etc/credstore.encrypted: permission denied
/etc $ stat credstore
  File: credstore
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 8,2	Inode: 3409076     Links: 2
Access: (0700/drwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-07-28 21:34:23.863431001 +0100
Modify: 2024-06-14 22:03:19.000000000 +0100
Change: 2024-07-28 20:22:50.172767480 +0100
 Birth: 2024-07-28 20:22:39.432586503 +0100
/etc $ sudo ls -all credstore
total 16
drwx------   2 root root  4096 Jun 14 22:03 .
drwxr-xr-x 193 root root 12288 Jul 28 23:50 ..

Ah: perhaps /etc/credstore is a new, highly restricted file - so (since I have no pressing need to back it up with rclone) I should set rclone to ignore it (via my already existing etc_filter-from file).

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