Minidlna `Permission denied`. How to setup properly?

First of all, that’s a very bad idea for anything in your ~/ folder. Permissions should be set to user:user where user is your username, 'course.

Second, the user variable in your config file needs to match. Set it to your username.

Another option is to set the user to nobody so that way you don’t need to login and any device can access the share.