I connected a HDD to USB port, then Raspbian allow me to mount the unit.
So I can access to logical drive with this path: /media/pi/PICTURES-HDD
.
Then I installed a DLNA server (serviio) to view the HDD content from TV, smartphone, notebook... etc.
The DLNA server runs as a service. The user is dlna-user
.
The dlna-user
has dlna-group
as primary group, and it is member of media
group.
So I run this command to apply required permission to allow dlna-user
to access to the PICTURES-HDD
:
# chown -R root:media /media
# chmod -R 777 /media
I think that it is right to permit dlna-user
to view the /media
folder and relative childs files and folders.
But it do not works: when I try to navigate inside the folder with dlna-user
user I receive "Permission denied":
- change operative user:
$ sudo -u dlna-user hash
now I using thedlna-user
. - go to
/media
folder:
$ cd /media
it works. - go to inside
pi
folder:
$ cd pi
returns this:bash: cd: pi: Permission denied
.
I don't understand...