Cannot use move command permission denied

What is the problem you are having with rclone?

the I try to use the move command it gives me an error about permission saying that it can't delete the file
"test.cnf: Couldn't delete: remove /home/qbtuser/test/test.cnf: permission denied"
but rclone copy works normally

What is your rclone version (output from rclone version)

clone v1.51.0

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

ubuntu 19.10, 64bit

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 move /home/qtuser/test gd:

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2020/03/20 10:07:23 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "-vv" "move" "/home/qbtuser/test/" "gd:"]

2020/03/20 10:07:23 DEBUG : Using config file from "/home/luis/.config/rclone/rclone.conf"

2020/03/20 10:07:23 INFO : Google drive root '': Waiting for checks to finish

2020/03/20 10:07:23 DEBUG : test.cnf: Size and modification time the same (differ by -748.558µs, within tolerance 1ms)

2020/03/20 10:07:23 DEBUG : test.cnf: Unchanged skipping

2020/03/20 10:07:23 ERROR : test.cnf: Couldn't delete: remove /home/qbtuser/test/test.cnf: permission denied

2020/03/20 10:07:23 INFO : Google drive root '': Waiting for transfers to finish

2020/03/20 10:07:23 ERROR : Attempt 1/3 failed with 1 errors and: remove /home/qbtuser/test/test.cnf: permission denied

2020/03/20 10:07:24 INFO : Google drive root '': Waiting for checks to finish

2020/03/20 10:07:24 DEBUG : test.cnf: Size and modification time the same (differ by -748.558µs, within tolerance 1ms)

2020/03/20 10:07:24 DEBUG : test.cnf: Unchanged skipping

2020/03/20 10:07:24 ERROR : test.cnf: Couldn't delete: remove /home/qbtuser/test/test.cnf: permission denied

2020/03/20 10:07:24 INFO : Google drive root '': Waiting for transfers to finish

2020/03/20 10:07:24 ERROR : Attempt 2/3 failed with 1 errors and: remove /home/qbtuser/test/test.cnf: permission denied

2020/03/20 10:07:24 DEBUG : test.cnf: Size and modification time the same (differ by -748.558µs, within tolerance 1ms)

2020/03/20 10:07:24 DEBUG : test.cnf: Unchanged skipping

2020/03/20 10:07:24 ERROR : test.cnf: Couldn't delete: remove /home/qbtuser/test/test.cnf: permission denied

2020/03/20 10:07:24 INFO : Google drive root '': Waiting for checks to finish

2020/03/20 10:07:24 INFO : Google drive root '': Waiting for transfers to finish

2020/03/20 10:07:24 ERROR : Attempt 3/3 failed with 1 errors and: remove /home/qbtuser/test/test.cnf: permission denied

2020/03/20 10:07:24 Failed to move: remove /home/qbtuser/test/test.cnf: permission denied

Run a

ls -al /home/qbtuser/test/test.cnf

and what user are you using?

id

this is what I got for running the first script
-rw-r--r-- 1 root root 5 Mar 20 10:02 /home/qbtuser/test/test.cnf
user id;
uid=1000(luis) gid=1000(luis) groups=1000(luis),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),115(lxd),117(deluge)

So the issue is your user does not have permission to move that file as it was created by root.

You'd need to chown the file to be your user you want to move it as.

1 Like

perfect thank you very much its working now once again thank you

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