# Copy template as non root user fails

**URL:** <https://forum.ansible.com/t/copy-template-as-non-root-user-fails/29784>\
**Category:** Ansible Project\
**Created:** [February 27, 2019, 4:28am UTC](https://forum.ansible.com/t/copy-template-as-non-root-user-fails/29784 "2019-02-27T04:28:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Govind\_C](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@Govind\_C](https://forum.ansible.com/u/Govind_C)\
**Post date:** [February 27, 2019, 4:28am UTC](https://forum.ansible.com/t/copy-template-as-non-root-user-fails/29784/1 "2019-02-27T04:28:56Z")

</div>

A regular user(gov1) wants to install an application (app1) owned by the app1:app1 under the directory where app1 has permission.

The /app\_mnt and its folders are all owned by app1:app1. (gov2) is part of app1 group as well

]# ls -ld /app\_mnt/app1/conf

drwxrw-r-x. 4 app1 app1 4096 Feb 26 16:41 /app\_mnt/app1/conf

The regular user(gov2) uses sudo to app1 for the installation

Playbook is run as regular user (gov2) .

## main playbook
