# Changing remote\_tmp path to a rooted directory.

**URL:** <https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864>\
**Category:** Ansible Project\
**Created:** [July 25, 2019, 9:11am UTC](https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864 "2019-07-25T09:11:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AC\_Zabala](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@AC\_Zabala](https://forum.ansible.com/u/AC_Zabala)\
**Post date:** [July 25, 2019, 9:11am UTC](https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864/1 "2019-07-25T09:11:05Z")

</div>

Hi! Kinda new to ansible. So I am currently running a playbook using _user1_ on a remote host _host_. I am planning to change the remote\_tmp directory to _/app/ansible/tmp/_ (owned by root) and I am having this error.

{“changed”: false, “msg”: “Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp". Failed command was: ( umask 77 && mkdir -p "`echo /app/ansible/tmp/ansible-tmp-1563874269.37-78080964197548`" && echo ansible-tmp-1563874269.37-78080964197548="`echo /app/ansible/tmp/ansible-tmp-1563874269.37-78080964197548`" ), exited with result 1”, “unreachable”: true}

Is there a way to change the remote\_tmp path to anywhere except /home and /tmp?

---

<div class="post-metadata">

**Author:** ![Ankur\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ankur\_Gupta](https://forum.ansible.com/u/Ankur_Gupta)\
**Post date:** [July 25, 2019, 11:49am UTC](https://forum.ansible.com/t/changing-remote-tmp-path-to-a-rooted-directory/30864/2 "2019-07-25T11:49:18Z")

</div>

you can change in ansible.cft file. here is the example.

[https://docs.ansible.com/ansible/2.3/intro\_configuration.html#remote-tmp](https://docs.ansible.com/ansible/2.3/intro_configuration.html#remote-tmp)

on the target folder, you can give user permission using chown command.

Thanks,  
Ankur
