# Files become permanently read-only after AI edits - cannot modify own code-March 27"

**URL:** <https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104>\
**Category:** Help\
**Created:** [March 27, 2025, 9:12pm UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104 "2025-03-27T21:12:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BAPO-X](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bapo-x/32/38636_2.png) [@BAPO-X](https://forum.cursor.com/u/BAPO-X)\
**Post date:** [March 27, 2025, 9:12pm UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/1 "2025-03-27T21:12:17Z")

</div>

## Files I create myself become read-only after AI helps modify them. This is a serious bug - I can’t edit my own files anymore after using AI assistance, even after restarting Cursor. This started happening in recent versions and makes the editor unusable for normal development. Please fix the file permissions system so files remain editable by their creator

## MacBook Pro M2 Max 96 GB - Sequoia 15.3.1

Begin happening 3/25/25 2:00 pst

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 27, 2025, 9:14pm UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/2 "2025-03-27T21:14:34Z")

</div>

Cursor doesnt set any permissions to files by itself. unless some command was executed to change permissions but that would have been listed in the chat as a command `chmod ....`

I had a similar issue when my Mac SSD had an issue. Restarting Mac fixed that.

---

<div class="post-metadata">

**Author:** ![BAPO-X](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bapo-x/32/38636_2.png) [@BAPO-X](https://forum.cursor.com/u/BAPO-X)\
**Post date:** [March 27, 2025, 9:15pm UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/3 "2025-03-27T21:15:26Z")

</div>

Thank you! I will try that…

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 27, 2025, 9:19pm UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/4 "2025-03-27T21:19:18Z")

</div>

If it still doesnt work you can execute following command in terminal in Cursor

```auto
ls -la

```

Output would be something similar to

```auto
total 16
drwxr-xr-x 2 user group 4096 Mar 27 12:00 dir1
-rw-r--r-- 1 user group 123 Mar 27 12:00 file1.txt
-r--r--r-- 1 user group 456 Mar 27 12:00 file2.txt

```

The values on the left mean:

d = directory  
r = read permission of the file/directory  
w = write permission of the file/directory  
x = execute permission of the file/directory

and it shows them 3 times because its  
1 for the owner of the file (if user can read, write or execute file)  
2 for the group of the owner of the file (if the group can read, write or execute file)  
3 for anyone else who is not owner or group, if they can read write or execute file.

so if the files have r r r it can be read only since it doesnt have w for write permission.

---

<div class="post-metadata">

**Author:** ![BAPO-X](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bapo-x/32/38636_2.png) [@BAPO-X](https://forum.cursor.com/u/BAPO-X)\
**Post date:** [March 27, 2025, 9:40pm UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/5 "2025-03-27T21:40:08Z")

</div>

Thank you Condor… I was unable to copy the code to a new file either, but by restarting the computer, i was able to copy the code script to a new file and it became editable! The original file till won’t work, even though i have full admin rw permissions.  
I feel this is solved! thanks again

---

<div class="post-metadata">

**Author:** ![BAPO-X](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bapo-x/32/38636_2.png) [@BAPO-X](https://forum.cursor.com/u/BAPO-X)\
**Post date:** [March 28, 2025, 6:32pm UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/6 "2025-03-28T18:32:15Z")

</div>

Sorry to say but the issues are getting worse. It is not my Mac OS, i’ve run a complete scan and my machine is error free and no malware or issues exist. The cursor Ai acknowledges my new issues, so I posted a NEW TOPIC ISSUE with other details.

---

<div class="post-metadata">

**Author:** ![BAPO-X](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bapo-x/32/38636_2.png) [@BAPO-X](https://forum.cursor.com/u/BAPO-X)\
**Post date:** [March 30, 2025, 2:09am UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/7 "2025-03-30T02:09:17Z")

</div>

PROBLEM SOLVED! See screenshots for the solution:

 ![Screenshot 2025-03-29 at 6.53.15 PM](https://us1.discourse-cdn.com/cursor1/original/3X/9/b/9b0e770ae91c8482eba960a2c633624f2f3ee265.png)  
 ![Screenshot 2025-03-29 at 6.52.48 PM](https://us1.discourse-cdn.com/cursor1/original/3X/6/0/601a265e70d991f514ee692071314d294335824a.png)  
 ![Screenshot 2025-03-29 at 6.52.28 PM](https://us1.discourse-cdn.com/cursor1/original/3X/3/e/3e473d2b9aa92ca61bdb62e921a210425e8642e1.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 29, 2025, 2:10am UTC](https://forum.cursor.com/t/files-become-permanently-read-only-after-ai-edits-cannot-modify-own-code-march-27/71104/8 "2025-04-29T02:10:03Z")

</div>

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