How to give read permissions to ReadyMedia

ReadyMedia (formerly known as MiniDLNA) needs to have read access to the directories and files in its media directories to be able to index them. By default, it runs as the user and group, both named as minidlna.

If the directories and files in the media directory have group read permissions, then ReadyMedia can get access to them by adding minidlna user to the group who owns those files:

$ sudo usermod -a -G joesgroup minidlna

Some programs create directories and files that have no group read permissions. For example, the client on Linux only provides user read access to the directories and files that is syncs. In such a case, you will need to tinker with the startup script of ReadyMedia and change the user it runs as to the user who has access to those directories and files.

On my Raspbian, I found that the startup script for ReadMedia was /etc/init.d/minidlna. Open it and look for the line where the username is provided and change that to the username you want. On my Raspbian, the relevant lines were:

if [ -z $USER ]; then

I changed minidlna in the above lines to the username who had read access to those files. In the worst case, you can even change it to root.

Restart the server for changes to take effect:

$ sudo service minidlna force-reload

Tried with: ReadyMedia 1.0.24 and Raspbian 7

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s