Discussion:
[gentoo-user] rsync: mkstemp failed: Permission denied (13)
t***@sys-concept.com
2017-03-22 04:07:05 UTC
Permalink
I'm trying to rsync (as root) files and I'm gettng an error
rsync: mkstemp failed: Permission denied (13)

rsync -av computer.MYD ***@10.10.0.2:/home/thelma/business/Monday/
sending incremental file list
computer.MYD
rsync: mkstemp "/home/thelma/business/Monday/.computer.MYD.sl2GiP" failed: Permission denied (13)

Source file:
-rwxr-xr-x 1 root root 128 Mar 20 21:25 computer.MYD

Destination:
-rwxr-xr-x 1 root root 96 Mar 13 20:35 computer.MYD
--
Thelma
t***@sys-concept.com
2017-03-22 04:36:26 UTC
Permalink
Post by t***@sys-concept.com
I'm trying to rsync (as root) files and I'm gettng an error
rsync: mkstemp failed: Permission denied (13)
sending incremental file list
computer.MYD
rsync: mkstemp "/home/thelma/business/Monday/.computer.MYD.sl2GiP" failed: Permission denied (13)
-rwxr-xr-x 1 root root 128 Mar 20 21:25 computer.MYD
-rwxr-xr-x 1 root root 96 Mar 13 20:35 computer.MYD
Solved.
The file in Thelma's dir had owner root:root it should be thelma:thelma
(chown -R thelma:thelma *) solved the problem.

Though I'm puzzled why it didn't work. I was running "rysnc" as root.

--
Thelma
Ian Bloss
2017-03-22 04:57:59 UTC
Permalink
You were rsyncing from root locally to user Thelma remotely
***@10.10.0.2
^^^^^^^
Post by t***@sys-concept.com
Post by t***@sys-concept.com
I'm trying to rsync (as root) files and I'm gettng an error
rsync: mkstemp failed: Permission denied (13)
sending incremental file list
computer.MYD
rsync: mkstemp "/home/thelma/business/Monday/.computer.MYD.sl2GiP"
failed: Permission denied (13)
Post by t***@sys-concept.com
-rwxr-xr-x 1 root root 128 Mar 20 21:25 computer.MYD
-rwxr-xr-x 1 root root 96 Mar 13 20:35 computer.MYD
Solved.
The file in Thelma's dir had owner root:root it should be thelma:thelma
(chown -R thelma:thelma *) solved the problem.
Though I'm puzzled why it didn't work. I was running "rysnc" as root.
--
Thelma
Loading...