Manual Change of rclone config file ownership every time pc is rebooted

What is the problem you are having with rclone?

I'm getting permission denied every time I try to run "rclone config" and it's because of the ownership of the file rclone.conf, which is owned by root. The problem is: I need to manually change every time the pc is rebooted, even though I don't run rclone as root.

What can I do?

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

rclone v1.61.1
os/arch: linux/amd64
go version: go1.19.4

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Arch Linux - 6.1.9-arch1-2, 64 bits

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

Google Drive

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

rclone config

The rclone config contents with secrets removed.

type = drive
scope = drive
token = {}
team_drive =

A log from the command with the -vv flag

7>DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "config" "-vv"]
<7>DEBUG : rclone: systemd logging support activated
Failed to load config file "/home/user/.config/rclone/rclone.conf": open /home/user/.config/rclone/rclone.conf: permission denied

hello and welcome to the forum,

by default, each user has it own config file

one option is to override the location of the config file,
to a location that can be access by both root and user

take a look at this systemd, it uses --config

The only thing I'd add is the simplest answer is generally it.

The only way the config file would get changed to root as if the root user ran it. That might be via cron or something or someway that might not be super obvious.

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