# Can't compile due to readonly files?

**URL:** <https://forums.unrealengine.com/t/cant-compile-due-to-readonly-files/479951>\
**Category:** Platform & Builds\
**Tags:** files, unreal-engine, question, CPP\
**Created:** [March 9, 2021, 12:57am UTC](https://forums.unrealengine.com/t/cant-compile-due-to-readonly-files/479951 "2021-03-09T00:57:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AirgeadLining](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AirgeadLining](https://forums.unrealengine.com/u/AirgeadLining)\
**Post date:** [March 9, 2021, 12:57am UTC](https://forums.unrealengine.com/t/cant-compile-due-to-readonly-files/479951/1 "2021-03-09T00:57:10Z")

</div>

![331842-perms1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/a/20a2aa5c94908718b109d917fe52969d17ff9ac6.png)

 ![331844-perms2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/e/5eefb0574a8ff98329b56133a3ec2d1b62b16081.png)

 ![331845-perms3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/1/8b10ac048fdbf8924cd8d8418b9c4cf533ecc0cc.png)

These images illustrate the errors I have been receiving. I am simply trying to compile/create a CPP file for a tutorial project and it won’t let me do anything because of these errors which all seem to center around a permissions issue. I don’t know enough to say why that is. I just made all the files in my Documents folder NOT read only but that hasn’t resolved things. I can browse files and load them normally regardless using windows 10 file explorer…

Any assistance would be much appreciated.

---

<div class="post-metadata">

**Author:** ![Kehel18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kehel18](https://forums.unrealengine.com/u/Kehel18)\
**Post date:** [March 9, 2021, 4:12pm UTC](https://forums.unrealengine.com/t/cant-compile-due-to-readonly-files/479951/2 "2021-03-09T16:12:40Z")

</div>

One way - just to run UE4 under Administrator, but anyway all things come from OS read|right grants and other applications (sometimes UE4 is blocked by its own thread due to multythreading) …

---

<div class="post-metadata">

**Author:** ![AirgeadLining](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AirgeadLining](https://forums.unrealengine.com/u/AirgeadLining)\
**Post date:** [March 10, 2021, 4:33pm UTC](https://forums.unrealengine.com/t/cant-compile-due-to-readonly-files/479951/3 "2021-03-10T16:33:49Z")

</div>

@Kehel18 thank you. I’ve done that and it seems to help. Sometimes though if I walk away and my machine goes into sleep (or turns off) I come back and lose everything that isnt saved because said event causes the application to drop privileges. I wish this wasn’t a thing. It does seem to have something to do with permissions/security because if I turn off some of my protections in windows defender it lets me (briefly) use the app.
