# Plex did not create a linux user for itself?

**URL:** https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968
**Category:** Plex Media Server
**Tags:** livetv-dvr, server-linux
**Created:** [December 23, 2022, 8:31pm UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968 "2022-12-23T20:31:12Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [December 24, 2022, 4:28am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/21 "2022-12-24T04:28:22Z")

</div>

The DVR is set to record into `/media/NGMEDIA/NugTV`.

It then wants to record a program.

It wants to create a `.grab` directory there for capturing the stream but  
because it has no permission in one or all of

```auto
/media
/media/NGMEDIA
/media/NGMEDIA/NugTV

```

it reports it can’t capture – which is true.

```auto
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] DEBUG - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Subscription: No existing library item episode 'grandparentGuid: plex://show/61db7f42843977430b6d30fa grandparentThumb: https://metadata-static.plex.tv/2/gracenote/21c1cecdb6d43a386be4fdb587b48813.jpg grandparentTitle: The Nutcracker and the Mouse King grandparentYear: 2021 guid: plex://episode/63940fe7407512037d502636 originallyAvailableAt: 2022-12-23 parentGuid: plex://season/61db7f42843977430b6d30fa/2022 parentIndex: 2022 parentTitle: Season 2022 ratingKey: plex%3A%2F%2Fepisode%2F63940fe7407512037d502636 title: The Nutcracker and the Mouse King type: 4 year: 2022'
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] DEBUG - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Grabber: checking for 2182 MB of available disk space in grab path and 100 MB in the transcode cache path
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] DEBUG - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] IsOnSameVolume: failed to stat "/media/NGMEDIA/NugTV/.grab": No such file or directory
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] ERROR - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Failed to calculate available disk space for path '"/media/NGMEDIA/NugTV/.grab"': 2 (No such file or directory)
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] DEBUG - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Grabber: Saving recording to "/media/NGMEDIA/NugTV/.grab/0a2ffe95531660cc3bc606265b5c18c9842e2d0c-280b79264d6e1a64340a84af01ed505f6855b863"
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] ERROR - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Grabber: No write permission.
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] DEBUG - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Grabber: Operation for 'The Nutcracker and the Mouse King - The Nutcracker and the Mouse King' on channel 5fc76b89088e7d002d651249-5fc705f87c6557002ee1eb7e completed with status error (No write access to destination)
Dec 23, 2022 22:14:01.731 [0x7f5bac43ab38] DEBUG - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Activity: Ended activity c984a947-3071-4fde-8e13-c64f72da587d.
Dec 23, 2022 22:14:01.731 [0x7f5bab157b38] DEBUG - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Activity: updated activity 50dd965a-ab8b-4d48-9844-5b0f5b1e9b6b - completed 100.0% - Refreshing Sub
Dec 23, 2022 22:14:01.732 [0x7f5bac43ab38] ERROR - [Grabber/0a2ffe95531660cc3bc606265b5c18c9842e2d0c] Starting media grab failed.

```

Where you need check is if:

1. plex has read-execute on /media
2. plex has read-write-execute on /media/NGMEDIA
3. keep going all the way into where `.grab` is created under `NugTV` where it also needs read-write-execute.

Here’s the How-To about getting DVR permissions correct on Linux.

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/10):
>
> Automating Linux permissions using inheritance (helps with DVR/LiveTV too) Linux has a very powerful and convenient way of automatically setting the permissions of your media files as you add more to your media directories. Linux allows only one username and one group to own a file which is somewhat of a restriction. This can be easily leveraged to accomplish what is needed for Plex. An excellent application of this is when you wish to record with Plex DVR, allowing it to write directly in…

---

<div class="post-metadata">

### Author: ![Cerberus73](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@Cerberus73](https://forums.plex.tv/u/Cerberus73)
#### Post date: [December 24, 2022, 4:32am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/22 "2022-12-24T04:32:47Z")

</div>

Why is that still pointing to “media” I wonder… I went through your linux tips and the libraries are supposed to be pointing to /disks/ now. Is there something else for the DVR location?

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [December 24, 2022, 4:34am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/23 "2022-12-24T04:34:26Z")

</div>

why pointing to there?

Look at the library section definition.  
Next look at the recording settings

It’s been a while but there is a place where you tell it the target library section for your recordings.

---

<div class="post-metadata">

### Author: ![Cerberus73](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@Cerberus73](https://forums.plex.tv/u/Cerberus73)
#### Post date: [December 24, 2022, 4:40am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/24 "2022-12-24T04:40:46Z")

</div>

I’ve got two libraries now, movies and TV. Both of them are pointing to /disks/NGMEDIA/. Seems weird that the DVR is still trying to write to /media/ and I cannot for the life of me find any setting for telling the DVR where to record!

---

<div class="post-metadata">

### Author: ![Cerberus73](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@Cerberus73](https://forums.plex.tv/u/Cerberus73)
#### Post date: [December 24, 2022, 4:43am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/25 "2022-12-24T04:43:12Z")

</div>

NGMEDIA is no longer mounting to /media/ so I guess it’s not surprising that plex is having trouble writing a file there…

---

<div class="post-metadata">

### Author: ![Cerberus73](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@Cerberus73](https://forums.plex.tv/u/Cerberus73)
#### Post date: [December 24, 2022, 4:57am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/26 "2022-12-24T04:57:59Z")

</div>

So, on a whim I re-mounted /disks/NGMEDIA without ro set, rebooted, and it looks like it’s recording 😳

Turned on hidden files and there’s a .grab folder in there! We may be onto something…

…and success! You’re a genius!

---

<div class="post-metadata">

### Author: ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)
#### Post date: [December 24, 2022, 5:50am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/27 "2022-12-24T05:50:20Z")

</div>

Don’t you love all the little details?

> [@Cerberus73](#):
>
> without ro set

‘ro’ is ‘read only’ 😉

Linux does exactly what you tell it.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [March 24, 2023, 5:50am UTC](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968/28 "2023-03-24T05:50:33Z")

</div>

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

[Previous page](https://forums.plex.tv/t/plex-did-not-create-a-linux-user-for-itself/823968.md?page=1)
