# Unable to run .py file from putty

**URL:** <https://discuss.pynq.io/t/unable-to-run-py-file-from-putty/5924>\
**Category:** Support\
**Created:** [August 9, 2023, 6:39pm UTC](https://discuss.pynq.io/t/unable-to-run-py-file-from-putty/5924 "2023-08-09T18:39:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhargava\_Upadhya](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@Bhargava\_Upadhya](https://discuss.pynq.io/u/Bhargava_Upadhya)\
**Post date:** [August 9, 2023, 6:39pm UTC](https://discuss.pynq.io/t/unable-to-run-py-file-from-putty/5924/1 "2023-08-09T18:39:50Z")

</div>

I am unable to run the python file in putty however when I switch to root user I am able to execute the program.  
Please let me know if there is there a way to run the python files as Xilinx user rather than switching to a root user.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/8/8e507d5cd6f025f32bddfc3bc5f92dc97e7c9c34.png)

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [August 10, 2023, 8:07am UTC](https://discuss.pynq.io/t/unable-to-run-py-file-from-putty/5924/2 "2023-08-10T08:07:05Z")

</div>

Hi @Bhargava_Upadhya,

MMIO uses `/dev/mem` to communicate with the PL. `/dev/mem` can only be accessed by root.

You may be able to change the permission of `/dev/mem` or add the `xilinx` user to the group that can access `/dev/mem`. You can search online how to do this.

There may be other parts of that `pynq` package that needs root access as well.

Mario

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/system/32/2_2.png) [@system](https://discuss.pynq.io/u/system)\
**Post date:** [August 22, 2023, 8:04pm UTC](https://discuss.pynq.io/t/unable-to-run-py-file-from-putty/5924/3 "2023-08-22T20:04:38Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
