Have had Amahi (Fedora 14) going for about 1 year, using mostly as server backup for 2 Windows machines (XP and Vista). As the admin (username: tom), have no problem accessing shares and files in Music, Pictures, Movies, Torrents, etc directories from any machine.
However, I'm getting ready to start using as a media server for a new home theater system (Samsung LED TV), so installed DLNA. Still no problem accessing files as admin, however, when I switch to my wife's account, I can see the folders (Music, Pictures, Movies, etc) but when I open them, there are no files visible. I have tried setting the permissions on the web interface, as well as chmod to 777 and 775 in a terminal for those folders within /var/hda/files. I did this both normally and recursively for each folder. No luck.
I'm a Linux noob, so not sure where to go from here. I do have greyhole operating, and it works well. I'm sure it must be something with permissions, but not sure why it has failed. Apologies if I've missed something within the forum, but have searched for this specific issue and have not been able to find anything that has worked.
Many thanks in advance for ANY direction!
Folders visible, but not files
Re: Folders visible, but not files
Check the ownership of files. Should be set to firstadminuser:users. Also ensure the shares are not restricted in the Dashboard.
I had a similar problem a while back and that was my problem.
I had a similar problem a while back and that was my problem.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 18
- Joined: Sun Sep 11, 2011 11:00 am
Re: Folders visible, but not files
Thank you so much for the quick reply. Dashboard shows all shares have all permissions set for Admin for access and writeable, and others (wife and guest) for access, not writeable.
I know how to list the folder attributes using the ls -l command in the terminal, but how do I go about checking ownership and then altering ownership of the folders and files if they are incorrect? Sorry to be so thick.
I know how to list the folder attributes using the ls -l command in the terminal, but how do I go about checking ownership and then altering ownership of the folders and files if they are incorrect? Sorry to be so thick.
Re: Folders visible, but not files
Do:
replacing share name with a share folder name. Part of the output should show who owns the file. If you do not see firstadminuser:users, then you will need to change it.
The command is:
Ensure you make the firstadminuser match your user who is the initial admin user for your HDA.
Hope that helps.
Code: Select all
ll /var/hda/files/share
The command is:
Code: Select all
chown -R firstadminuser:users /var/hda/files/share
Hope that helps.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 18
- Joined: Sun Sep 11, 2011 11:00 am
Re: Folders visible, but not files
Bigfoot, Thank you for the instructions. Firstadminuser and users were both set to root on some of the folders. I chown to tom:users, as I am the initial admin user. Still no joy; folders visible under wife's and guest access, but not the files themselves.
However, I noticed that when I added a file (test document file) on my wife's account to one of the shares, it copied over fine and then disappeared. I could see it when I logged in as the admin, but not as other user. Subsequently, when I turn off greyhole pooling in the dashboard for the share, and then copy a test file, it is now visible and stays visible. I tried this with several other shares and found that when greyhole is off (disks not pooled), files are seen.
Is this a known glitch? I'd like to be able use the pooling feature. Again, any thoughts would be a great help. Many thanks in advance.
However, I noticed that when I added a file (test document file) on my wife's account to one of the shares, it copied over fine and then disappeared. I could see it when I logged in as the admin, but not as other user. Subsequently, when I turn off greyhole pooling in the dashboard for the share, and then copy a test file, it is now visible and stays visible. I tried this with several other shares and found that when greyhole is off (disks not pooled), files are seen.
Is this a known glitch? I'd like to be able use the pooling feature. Again, any thoughts would be a great help. Many thanks in advance.
Re: Folders visible, but not files
Make sure that your wife is a member of the 'users' group. To check, log into your hda and type:
id <username>
It should show groups=xxx (<groupname>) along with other information. All the users you want to have access to the shares must be members of the 'users' group.
Good luck!
id <username>
It should show groups=xxx (<groupname>) along with other information. All the users you want to have access to the shares must be members of the 'users' group.
Good luck!
Re: Folders visible, but not files
Should not be a Greyhole issue. Maybe try adding the Greyhole mount_shares_locally service and see if that helps. As I said, I had the same issue once but it cleared up. Wished I could remember what I did or changed to make it work.
http://wiki.amahi.org/index.php/Mount_Shares_Locally
I would think that if Greyhole is turned off and you can access shares/files, it is not a group issue with the users. It has to be Greyhole related. We had not heard many issues in the past, but sometimes these anomalies find their way.
http://wiki.amahi.org/index.php/Mount_Shares_Locally
I would think that if Greyhole is turned off and you can access shares/files, it is not a group issue with the users. It has to be Greyhole related. We had not heard many issues in the past, but sometimes these anomalies find their way.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 18
- Joined: Sun Sep 11, 2011 11:00 am
Re: Folders visible, but not files [solved]
Thanks to everyone for their help. I tried to mount the Gh shares locally, no effect. Searched again through the greyhole board and found this post:
viewtopic.php?f=39&t=3200&start=10
Though it did not work initially, when I searched through the appropriate files and folders in the gh path (/var/hda/files/drives/drive1/gh), the "drives" folder still had root permissions. Chown this and the files all appeared! Definitely a permissions issue, as had been discussed in a variety of posts on the topic, trick is to find the culprit folder. When Gh was turned off, Amahi was using the /var/hda/files directory to store the other folders and files (all of which had appropriate owners), which is what was pushing me toward a gh problem. Turned out I had made one share for HomeMovies on the other drive (drive1) which I couldn't access either from non-admin accounts. However, when I turned gh off, I still couldn't access this share. Looked harder and found the permissions issue which cleared all the problems.
Thanks again for your patience!
viewtopic.php?f=39&t=3200&start=10
Though it did not work initially, when I searched through the appropriate files and folders in the gh path (/var/hda/files/drives/drive1/gh), the "drives" folder still had root permissions. Chown this and the files all appeared! Definitely a permissions issue, as had been discussed in a variety of posts on the topic, trick is to find the culprit folder. When Gh was turned off, Amahi was using the /var/hda/files directory to store the other folders and files (all of which had appropriate owners), which is what was pushing me toward a gh problem. Turned out I had made one share for HomeMovies on the other drive (drive1) which I couldn't access either from non-admin accounts. However, when I turned gh off, I still couldn't access this share. Looked harder and found the permissions issue which cleared all the problems.
Thanks again for your patience!
Re: Folders visible, but not files
I remember the solution for my issue now
I did a chown on /var/hda/files recursivley and fixed all my issues.
Sorry I could not remember, but at least this solution worked for you. Can you add it to the wiki for Greyhole tips?

Sorry I could not remember, but at least this solution worked for you. Can you add it to the wiki for Greyhole tips?
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Who is online
Users browsing this forum: No registered users and 19 guests