# Plex Media Deleted Media without authorization

**URL:** <https://forums.plex.tv/t/plex-media-deleted-media-without-authorization/680577>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [January 20, 2021, 6:34pm UTC](https://forums.plex.tv/t/plex-media-deleted-media-without-authorization/680577 "2021-01-20T18:34:12Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [January 22, 2021, 12:12am UTC](https://forums.plex.tv/t/plex-media-deleted-media-without-authorization/680577/9 "2021-01-22T00:12:05Z")

</div>

That’s a “NOT Cool” move.

What you did was to place your media inside Plex’s internal area.  
Everything under `/var/lib/plexmediaserver` is owned by `plex:plex` for a reason.  
Its cleanup (butler task) ran and, because your files were foreign / unknown, wooosh. It only succeeded because the files were owned by `plex:plex` or had 777/666 permissions, right?

To avoid this happening again:

1. Make mount point directories somewhere out under root which don’t conflict with anything. How about `/nas` ?
2. Create subdirectories for each library section you intend to have Plex index.
3. Mount the media there
4. Set the permissions (i use `sec=sys` on the NFS mount option) such that the NAS is a “big HDD” for the workstation) to the classic 755/644 and yourself as the owner.

My NAS is named ‘Vienna’ so the mount point is `/vie`  
The shared folders are mounted this way

> #movies  
> 192.168.0.21:/movies /vie/movies nfs sec=sys,intr,rw,vers=4,timeo=15,rsize=2097152,wsize=2097152,auto,async,x-systemd.after=network-online.target,nofail,bg 0 0

This gives me what you see here:

```auto
[chuck@lizum ~/dsm7.505]$ cd /vie/movies
[chuck@lizum movies.506]$ ls -la
total 1397052
drwxr-xr-x 262 chuck chuck 16384 Dec 31 11:37 ./
drwxr-xr-x 49 chuck chuck 4096 Jan 8 01:31 ../
-rw-r--r-- 1 chuck chuck 249 Sep 13 2015 addeleted
drwsr-sr-x 2 chuck chuck 4096 Jan 3 2020 After Earth (2013)/
drwsr-sr-x 2 chuck chuck 4096 Jan 3 2020 After the Dark (2014)/
drwsr-sr-x 2 chuck chuck 4096 Dec 16 03:36 Allegiant (2016)/
drwsr-sr-x 2 chuck chuck 4096 Dec 16 17:42 Ant-Man (2015)/
drwsr-sr-x 2 chuck chuck 4096 Oct 6 2018 Ant-Man and the Wasp (2018)/
drwsr-sr-x 2 chuck chuck 4096 Jan 3 2020 Argo (2012)/
drwsr-sr-x 2 chuck chuck 4096 Jan 3 2020 Atlas Shrugged II The Strike (2012)/
drwsr-sr-x 2 chuck chuck 4096 Jan 3 2020 Atlas Shrugged Part I (2011)/
drwsr-sr-x 2 chuck chuck 4096 Jan 3 2020 Atlas Shrugged Part III Who is John Galt (2014)/

```

Make sense?

Plex’s autopilot works really nice but because it’s Linux we don’t have anything to prevent us from executing CFIT 🤣

I have created a “Linux How-To” which is a collection of best practices & tips.  
In it, I suggest ways of doing things then follow through with functional examples.

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247):
>
> Tips & Tricks of the Linux trade. Below, you’ll find a collection of tips, tricks, and how-to’s to help make setting up, administrating, and using Plex Media Server on Linux a little easier. [Reporting problems](https://forums.plex.tv/t/linux-tips/276247/20)[Using other hard drives (Windows or Linux) with PMS](https://forums.plex.tv/t/linux-tips/276247/2)[Customizing your Plex configuration on systemd based systems](https://forums.plex.tv/t/linux-tips/276247/3)[Using other EXT4, NTFS, or other drives (internal or USB)](https://forums.plex.tv/t/linux-tips/276247/2)[Mounting CIFS + SMB network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/4)[Mounting NFS network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/5)[Moving…](https://forums.plex.tv/t/linux-tips/276247/6)

---

_[View the full topic](https://forums.plex.tv/t/plex-media-deleted-media-without-authorization/680577)._
