# Different permissions values somehow?

**URL:** <https://forum.inductiveautomation.com/t/different-permissions-values-somehow/36309>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [July 2, 2020, 5:26pm UTC](https://forum.inductiveautomation.com/t/different-permissions-values-somehow/36309 "2020-07-02T17:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [July 2, 2020, 5:26pm UTC](https://forum.inductiveautomation.com/t/different-permissions-values-somehow/36309/1 "2020-07-02T17:26:28Z")

</div>

I have a part of my application that makes a PDF, saves it the gateway C drive, and then moves it to a network drive. This was working up until today - last night our VMs all restarted due to a windows update and I guess some login was lost. I added login credentials to our igintion.conf to avoid more issues and restarted this gateway. However, I was still getting `errno 13 permission denied` when it was trying to move the file to the network drive.

I tested, and saw I was able to save reports directly to my network drive from the gateway in designer. I changed up my script to do the same, and it worked succesfully.

I’m just wondering how it’s possible my gateway has the permissions to directly put reports on a network drive, but trying to use `shutil` to move a report from the gateway machine to a network drive fails a permission?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 2, 2020, 5:34pm UTC](https://forum.inductiveautomation.com/t/different-permissions-values-somehow/36309/2 "2020-07-02T17:34:46Z")

</div>

The designer uses the filesystem and credentials of the logged in user, not necessarily the user the service is running as.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [July 2, 2020, 5:37pm UTC](https://forum.inductiveautomation.com/t/different-permissions-values-somehow/36309/3 "2020-07-02T17:37:07Z")

</div>

Ok. In my gateway message script same deal though - using `shutil` to copy I get a permissions error, using the report function to make the report directly at the network drive path - works fine.
