# File Path Access from Linux Server in Script Console

**URL:** <https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [November 3, 2025, 2:05pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895 "2025-11-03T14:05:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogesh\_Garud](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@Yogesh\_Garud](https://forum.inductiveautomation.com/u/Yogesh_Garud)\
**Post date:** [November 3, 2025, 2:05pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895/1 "2025-11-03T14:05:04Z")

</div>

Hello,

I have Ignition installed on a Linux server and I am accessing it from an external Windows AWS Workspace. Currently, I am unable to read file paths from the Linux server within the Script Console.

Could you please provide guidance on how to correctly access files on the Linux server in this setup? Any suggestions or configurations needed would be greatly appreciated.

example of filepath = "/home/user/documents/my\_file.txt"  
And Ignition version is 8.1

Thank you for your support.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 3, 2025, 2:06pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895/2 "2025-11-03T14:06:04Z")

</div>

Scripting in the Designer script console runs on the machine that is running the Designer.

You would need to execute your script somewhere that runs in the Gateway scope, like a tag event script, or by sending to a message handler.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 3, 2025, 2:09pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895/3 "2025-11-03T14:09:38Z")

</div>

If you install my Integration Toolkit, you can use the [@system.util.runInGateway](https://www.automation-pros.com/toolkit/doc/utility.html#runingateway) decorator in your project library scripts, so that calls from the designer will actually execute in the gateway.

---

<div class="post-metadata">

**Author:** ![Yogesh\_Garud](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@Yogesh\_Garud](https://forum.inductiveautomation.com/u/Yogesh_Garud)\
**Post date:** [November 3, 2025, 2:10pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895/4 "2025-11-03T14:10:24Z")

</div>

Thank you for your guidance. I’ve tried running the script in a Gateway event, but I’m still seeing the error **“Files Not in path”** in the logs. Here’s the script I used:

```python
import os
import sys

path = r"/FolderName/2025-10-27"
logger = system.util.getLogger("FileCheck")
try:
    if os.path.exists(path):
        files = os.listdir(path)
        logger.info("Files in path:")
    else:
        logger.info("Files Not in path:")
except:
    exc_type, exc_obj, tb = sys.exc_info()
    lineno = tb.tb_lineno
    errormessage = "Error: " + str(lineno)+ ' ' + str(exc_obj)
    print(errormessage)

```

Could you please advise on why the Gateway isn’t detecting the files on the Linux server?

---

<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:** [November 3, 2025, 2:34pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895/5 "2025-11-03T14:34:19Z")

</div>

Usually, this is a permissions issue.

---

<div class="post-metadata">

**Author:** ![Yogesh\_Garud](https://avatars.discourse-cdn.com/v4/letter/y/db5fbb/32.png) [@Yogesh\_Garud](https://forum.inductiveautomation.com/u/Yogesh_Garud)\
**Post date:** [November 3, 2025, 2:55pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895/6 "2025-11-03T14:55:49Z")

</div>

I have noticed that one of the paths appears to have full read access (drwxrwxrwx), but I’m still unable to read the directory. Since Ignition is running from outside of the Linux environment, I believe the Ignition user should not be the local user - unless I’m mistaken.

Do you have any other suggestions or insights on why the Gateway might not be able to access the path?

Thank you for your continued support.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 3, 2025, 3:29pm UTC](https://forum.inductiveautomation.com/t/file-path-access-from-linux-server-in-script-console/111895/7 "2025-11-03T15:29:47Z")

</div>

> [@Yogesh\_Garud](#):
>
> but I’m still unable to read the directory.

Modern high-security Linux can enforce protections via labeling under SELinux ("Security Enhanced"), which can make unreadable what looks like a world-readable location.

You will need to investigate via CLI access to the server, or ask your IT for help (or whomever set up that server).
