Read and Write Permissions
Fix Sonoran CAD FiveM issues caused by read-only files or missing write permissions on Windows and Linux hosts.
Last updated
Was this helpful?
Fix Sonoran CAD FiveM issues caused by read-only files or missing write permissions on Windows and Linux hosts.

If the sonorancad resource cannot create, rename, or update files, you may see startup issues like:
Failed to create target file
Failed to rename ..._config.dist.lua to ..._config.lua
Unable to open config backup file
Changes not saving after updates or restarts
These usually mean your host has marked the resource files as read-only, or the server process does not have permission to write to them.
Some game panel hosts (Ex: ZAP Hosting) do not allow FiveM resources to programmatically modify other files. This blocks the Sonoran CAD resource from updating itself. In this case, you must disable automatic updates and manually install updated versions of the resource as they release.
To disable automatic updates navigate to your config file:
[sonorancad]/sonorancad/configuration
/config.json and change allowAutoUpdate from true to false.
Looking for a server host? Learn more about our one-click installation here.
Log into the panel where your FiveM server is hosted, such as txAdmin, Pterodactyl, ZAP-Hosting, Gamepanel, or your VPS file manager.
Check the main Sonoran CAD resource folder and configuration folder:
Pay special attention to:
Open your host panel or file manager and navigate to:
Navigate to the specific file mentioned in the error code and update the permissions.
Recommended file permissions:
766
If that fails, try 666
If your panel supports permission changes:
Right-click the configuration folder or affected file
Select Permissions
Apply the updated permissions


If your host does not allow permission changes, contact the hosting provider and ask them to make the Sonoran CAD resource writable.
Each permission digit is the sum of:
4 = read
2 = write
1 = execute
Common values:
4 = read only
6 = read + write
7 = read + write + execute
Start with the configuration folder. If needed, also check the full sonorancad folder.
Right-click the folder or affected file
Click Properties
Under the General tab:
Uncheck Read-only
Click Apply
Choose to apply changes to this folder, subfolders, and files if prompted
Click OK
If you only changed a single file and the issue comes back, repeat the process on the entire sonorancad folder.
After updating permissions, restart the Sonoran CAD resource or your full server:
If the issue continues, verify the files are named correctly and were not saved with extra extensions such as config.json.json.
Last updated
Was this helpful?
Was this helpful?
resources/[sonorancad]/sonorancad/
resources/[sonorancad]/sonorancad/configuration/resources/[sonorancad]/sonorancad/configuration/config.json
resources/[sonorancad]/sonorancad/configuration/*_config.luaresources/[sonorancad]resources\[sonorancad]\sonorancad\configuration\exec @sonorancad/sonorancad.cfg
