My minidlna.conf
My log file minidlna.log
All the files and directories have the same owner:group, enzo:media, and rights, 770 for the directories and 440 for the files.
If root calls directly
I have to change the script in rc.d to run the daemon as another user.
If I change owner:group in dlna:dlna for the directory /mnt/Media/Multimedia/Film the result doesn't change.
Where I'm wrong?
Code:
# specify the user account name or uid to run as
user=dlna
media_dir= /mnt/Media/Multimedia/Film
log_level=database,scanner=debug
Code:
enzo@Joshua:/var/log/minidlna % tail -20 minidlna.log
[2015/01/31 11:38:59] minidlna.c:1029: warn: Starting MiniDLNA version 1.1.4.
[2015/01/31 11:38:59] minidlna.c:356: warn: Creating new database at /var/db/minidlna/files.db
[2015/01/31 11:38:59] minidlna.c:1077: warn: HTTP listening on port 8200
[2015/01/31 11:38:59] scanner.c:726: info: Scanning /mnt/Media/Multimedia/Film
[2015/01/31 11:38:59] scanner.c:756: warn: Error scanning /mnt/Media/Multimedia/Film
Code:
enzo@Joshua:/mnt/Media/Multimedia % ll /mnt/Media/
drwxrwx--- 12 enzo media 512 Jan 31 09:58 Multimedia/
enzo@Joshua:/mnt/Media/Multimedia % ll
drwxrwx--- 238 enzo media 8704 Jan 31 11:37 Film/
enzo@Joshua:/mnt/Media/Multimedia % ll Film/
drwxrwx--- 238 enzo media 8704 Jan 31 11:37 A...
drwxrwx--- 238 enzo media 8704 Jan 31 11:37 B...
enzo@Joshua:/mnt/Media/Multimedia % pw groupshow media
media:*:1002:enzo,a300,xbmc,transmission,dlna
minidlnad -u root -f /usr/local/etc/minidlna.conf
all is OK; also miniland -u enzo
is OK but if I change the directive "user=enzo" in minidlna.conf the daemon runs always as dlna and results the scan error in the log file.I have to change the script in rc.d to run the daemon as another user.
If I change owner:group in dlna:dlna for the directory /mnt/Media/Multimedia/Film the result doesn't change.
Where I'm wrong?