# Moving MacOS to Linux - errors

**URL:** <https://forums.plex.tv/t/moving-macos-to-linux-errors/883794>\
**Category:** Plex Media Server\
**Tags:** server-mac, server-linux\
**Created:** [July 28, 2024, 10:03pm UTC](https://forums.plex.tv/t/moving-macos-to-linux-errors/883794 "2024-07-28T22:03:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [July 28, 2024, 10:46pm UTC](https://forums.plex.tv/t/moving-macos-to-linux-errors/883794/2 "2024-07-28T22:46:56Z")

</div>

> [@hutchwilco](#):
>
> `attempt to write a readonly da`

Plex cannot write to the database.

Verify permissions for the [Plex Data Folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/).

See Linux Tips: [Migration from another OS to Linux](https://forums.plex.tv/t/linux-tips/276247/23).

Specifically (adjusting if needed for running in an LXC):

- Change the ownership of the files to the Plex user on the Linux host.

```auto
# chown -R plex:plex "/var/lib/plexmediaserver"

```

- Make certain Linux file permissions are set correctly

```auto
# find /var/lib/plexmediaserver -type d -exec chmod 755 {} \;
# find /var/lib/plexmediaserver -type f -exec chmod 644 {} \;

```

---

_[View the full topic](https://forums.plex.tv/t/moving-macos-to-linux-errors/883794)._
