Amahi DLNA does not show all share dir (Ubuntu server 12.04)

achmetinternet
Posts: 71
Joined: Tue Sep 20, 2011 8:02 am

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby achmetinternet » Fri Sep 07, 2012 7:27 am

Permissions where, i.e. for which app? And would the firstadminuser be my login name? And what is the command to change those?

Thanks a lot for your help.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby bigfoot65 » Fri Sep 07, 2012 7:45 am

Permissions for shares must be the Amahi first admin user as noted in the dashboard. Check /var/hda/files and if any folders/files are root or apache, then that can cause issues with DLNA or any app that needs access to those files (i.e. CouchPotato).

To change the permissions, do the following (i.e. first admin user is tom and share folder is music):

Code: Select all

chmod -R tom:users /var/hda/files/music
For Ubuntu, this command must be preceded with sudo. Fedora requires you to be root user.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

achmetinternet
Posts: 71
Joined: Tue Sep 20, 2011 8:02 am

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby achmetinternet » Fri Sep 07, 2012 7:50 am

And how can I check current permissions?

Thanks,
Torsten

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby bigfoot65 » Fri Sep 07, 2012 8:44 am

From terminal do:

Code: Select all

ll /var/hda/files
It should indicate who owns the folders in that location.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

achmetinternet
Posts: 71
Joined: Tue Sep 20, 2011 8:02 am

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby achmetinternet » Fri Sep 07, 2012 9:23 am

Permissions for shares must be the Amahi first admin user as noted in the dashboard. Check /var/hda/files and if any folders/files are root or apache, then that can cause issues with DLNA or any app that needs access to those files (i.e. CouchPotato).

To change the permissions, do the following (i.e. first admin user is tom and share folder is music):

Code: Select all

chmod -R tom:users /var/hda/files/music
For Ubuntu, this command must be preceded with sudo. Fedora requires you to be root user.

I used the command chown instead of chmod. However, is it possible that now Transmission cannot write into the Torrent folder anymore?

achmetinternet
Posts: 71
Joined: Tue Sep 20, 2011 8:02 am

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby achmetinternet » Fri Sep 07, 2012 9:29 am

From my Windows client I cannot access the network drive (mirrored the Torrents folder) anymore...

achmetinternet
Posts: 71
Joined: Tue Sep 20, 2011 8:02 am

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby achmetinternet » Fri Sep 07, 2012 9:40 am

There is definitely an issue with Transmission:

1. the server is showing in the dashboard as not running
2. I cannot access the shared drive anymore after changing permissions
3. I get the following error in Transmission for a download that was still running

Error: Permission denied (/var/hda/files/torrents/FOLDER/FILENAME)

achmetinternet
Posts: 71
Joined: Tue Sep 20, 2011 8:02 am

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby achmetinternet » Fri Sep 07, 2012 9:45 am

And I can still see Pictures and Music on my WDLXTV but cannot access the Movies although I have changed the permission...

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby bigfoot65 » Fri Sep 07, 2012 9:51 am

Sorry, I meant chown and not chmod :)

For the torrents folder, it may be apache:users vs firstadminuser:users. If you reset the permissions back to what they were for torrents, that should fix the issue.

Also, are you using Greyhole on that share? Sometimes it does not play well with apps.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

achmetinternet
Posts: 71
Joined: Tue Sep 20, 2011 8:02 am

Re: Amahi DLNA does not show all share dir (Ubuntu server 12

Postby achmetinternet » Mon Sep 10, 2012 12:09 am

Am not using Greyhole (yet) but I do not remember the user before, could it have been simply 500 (like one could have 775 or 777?) and why does the Movies folder still not work if it gets the same permissions as Pictures and Music?

Who is online

Users browsing this forum: No registered users and 17 guests