Plex is defined as if any other user however:
- It runs as a service
- Synology required I use their
synouserutility - It has a 256 bit random password which changes every time you update the package
Here is the actual script segment
synouser --get plex 2>1 > /dev/null
if [ $? -ne 0 ]; then
# create user with random password
echo "Creating Plex user."
synouser --add plex $(uuidgen) 'Plex User' 0 '' ''
else
echo "Securing existing Plex user"
synouser --setpw plex $(uuidgen)
synouser --modify plex 'Plex User' 0 ''
fi
Having plex be a normal user gives you full control over what shares it can see on your NAS.