# the remote target box haven't authority to create temp log for playbook

**URL:** <https://forum.ansible.com/t/the-remote-target-box-havent-authority-to-create-temp-log-for-playbook/20600>\
**Category:** Ansible Developer\
**Created:** [February 17, 2016, 8:48am UTC](https://forum.ansible.com/t/the-remote-target-box-havent-authority-to-create-temp-log-for-playbook/20600 "2016-02-17T08:48:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaycoolzhao](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@jaycoolzhao](https://forum.ansible.com/u/jaycoolzhao)\
**Post date:** [February 17, 2016, 8:48am UTC](https://forum.ansible.com/t/the-remote-target-box-havent-authority-to-create-temp-log-for-playbook/20600/1 "2016-02-17T08:48:46Z")

</div>

Hi,

when playbook cli runs, it fails as below:

fatal: [10.170.115.221]: FAILED! =\> {“failed”: true, “msg”: “ERROR! failed to transfer file to /flash/home/cde/ansible-tmp-1455696872.88-178149562002428/expect:\n\nlost connection\n”}

That’s due to run the playbook through ssh user/password, but the user is not root user so that could not create temp file on remote box.  
Is there any other config to abandon this temp file that do not return this error message?

BRs  
Jay

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 20, 2016, 4:54pm UTC](https://forum.ansible.com/t/the-remote-target-box-havent-authority-to-create-temp-log-for-playbook/20600/2 "2016-02-20T16:54:31Z")

</div>

Normally temp files get created in the remote user’s own home, these files are the module to execute, its arguments and possibly other resources. It is rare that you need root privileges to create files in a user’s own home.

if you can use pipelining, this avoids the creation of files, but it does not work well with prompts.

You can also set the directory used for remote temporary files (remote\_tmp in ansible.cfg and other ways).
