OwnCloud e mindlna na mesma pasta (law-management) - minidlna.c: 474: erro: diretório de mídia não acessível! [Permissão negada]

1

Eu tenho uma pergunta sobre minha configuração e as permissões em meu Raspi B com minidlna e owncloud.

Eu configurei meu usuário pi com a permissão

dmask=007 aka 0770 on every start because it is a

ntfs usb-hdd that can only set with the permissions in

/etc/fstab

lá está

sudo nano /etc/fstab

UUID=3488A17988A139EE /media/usb-hdd ntfs defaults,nls=utf8,uid=1000,gid=1000,dmask=007,windows_names 0 0

uid=1000 -> for the user pi

gid=1000 -> for the group pi

porque recebi a falha via owncloud no meu navegador

Data directory ( /media/USB-HDD/ownCloud/data ) can be read by other users Please change the permissions to 0770 so that the directory can not be viewed by others

agora com este dmask = 007 funciona provavelmente para mim

Agora meu problema:

Eu também coloquei minha pasta com o conteúdo de mídia Filmes, ... sob este caminho

/media/usb-hdd/OwnCloud/data/admin/files/Movies

mas com o pedido

sudo -u minidlna minidlna -R

Eu tenho as mesmas falhas:

[2015/06/17 19:55:31] minidlna.c:474: error:

Media directory "/media/usb-hdd/OwnCloud/data/admin/files/Movies" not accessible! [Permission denied]

[2015/06/17 19:55:31] getifaddr.c:73: error: ioctl(s, SIOCGIFADDR, ...): No such device

Meu minidlna.conf contém isso

sudo nano /etc/minidlna.conf

[2015/06/17 19:42:29] playlist.c:125: warn: Parsing playlists...

[2015/06/17 19:55:31] daemonize.c:101: error: Unable to open pidfile for writing /run/minidlna.pid: Permission denied

[2015/06/17 19:55:31] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].

[2015/06/17 19:55:31] minidlna.c:926: warn: Creating new database... [2015/06/17 19:55:31] minidlna.c:132: error: bind(http): Address already in use

[2015/06/17 19:55:31] minidlna.c:1004: fatal: Failed to open socket for HTTP. EXITING

[2015/06/17 19:55:31] playlist.c:125: warn: Parsing playlists...

[2015/06/17 20:11:30] minidlna.c:155: warn: received signal 15, good-bye

[2015/06/17 20:11:52] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].

[2015/06/17 20:11:52] minidlna.c:1006: warn: HTTP listening on port 8200

[2015/06/17 20:11:52] inotify.c:195: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [0] and I do not hav$

[2015/06/18 04:44:57] daemonize.c:101: error: Unable to open pidfile for writing /run/minidlna.pid: Permission denied

[2015/06/18 04:44:57] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].

[2015/06/18 04:44:57] minidlna.c:926: warn: Creating new database...

[2015/06/18 04:44:57] minidlna.c:132: error: bind(http): Address already in use

[2015/06/18 04:44:57] minidlna.c:1004: fatal: Failed to open socket for HTTP. EXITING [2015/06/18 04:44:57] playlist.c:125: warn: Parsing playlists...

As permissões são

pi@WoW /media/usb-hdd/OwnCloud/data/admin/files/Movies $ ls -ld /media/usb-hdd/OwnCloud /media/usb-hdd/OwnCloud/data/admin/files/Movies

drwxrwx--- 1 pi pi 4096 Jun 16 22:04 /media/usb-hdd/OwnCloud

drwxrwx--- 1 pi pi 4096 Jun 1 00:30 /media/usb-hdd/OwnCloud/data/admin/files/Movies

É possível definir as permissões de

/media/usb-hdd/OwnCloud/data/ to 0770

and to the folder

/media/usb-hdd/OwnCloud/data/admin/files/Movies

other permissions, so that can access minidlna to it.

Ou eu tenho que mover a pasta / mídia / usb-hdd / OwnCloud / dados / admin / files / Movies

to /media/usb-hdd/Movies

A razão é que vou observar a pasta

/media/usb-hdd/OwnCloud/data/

via owncloud and share the folder Movies intern to my Samsung TV via DNLA.

Então eu encontrei o link

under the point I changed the GID of the user minidlna since it can't run as pi (only root or minidlna)

as seguintes informações

antes

pi@Wow:/$ id minidlna

uid=108(minidlna) gid=112(minidlna) groups=112(minidlna)

Eu altero as permissões para o usuário mindlna do usuário depois disso

pi@WoW:/$ sudo usermod -g 1000 minidlna

Agora eu tenho

pi@WoW ~ $ id minidlna uid=108(minidlna) gid=1000(pi) groups=1000(pi)

com o pedido

pi@WoW ~ $ sudo -u minidlna minidlna -R

[2015/06/18 06:03:39] getifaddr.c:73: error: ioctl(s, SIOCGIFADDR, ...): No such device

Mas o que é isso

getifaddr.c:73: error: ioctl(s, SIOCGIFADDR, ...): No such device

Mas agora eu entendo isso

pi@WoW ~ $ sudo /etc/init.d/minidlna restart [....] Restarting DLNA/UPnP-AV media server: minidlna[2015/06/18 06:40:09] minidlna.c:474: error:

Media directory "/media/usb-hdd/OwnCloud/data/admin/files/Movies" not accessible! [Permission denied

[2015/06/18 06:40:09] getifaddr.c:73: error: ioctl(s, SIOCGIFADDR, ...): No such device . ok pi@WoW ~ $

com

pi@WoW ~ $ ls -ld /media/usb-hdd/OwnCloud /media/usb-hdd/OwnCloud/data/admin/files/Movies

drwxrwx--- 1 pi pi 4096 Jun 16 22:04 /media/usb-hdd/OwnCloud/data/admin/files/Filme

O que está errado!

Agora mudei o valor umask = 0002

/etc/fstab

lá está

sudo nano /etc/fstab

UUID=3488A17988A139EE /media/usb-hdd ntfs defaults,nls=utf8,uid=1000,gid=1000,dmask=007,umask=0002,windows_names 0 0

E o pedido

pi@WoW ~ $ sudo service minidlna force-reload [....] Restarting DLNA/UPnP-AV media server: minidlna[2015/06/18 08:11:24] getifaddr.c:73: error: ioctl(s, SIOCGIFADDR, ...): No such device . ok

Mas o fracasso

getifaddr.c:73: error: ioctl(s, SIOCGIFADDR, ...): No such device

também está lá.

Aqui eu pesquiso até agora para uma solução!

    
por Horst 18.06.2015 / 07:46

0 respostas