There is no revised script. You have to make the changes specified in the article.
There is only one mount_shares_locally script as available in the wiki. You could also check the Greyhole web site.
You will find it mentions not to use Greyhole with
file types. This may change how you want to use Greyhole with your shares.
I looked through the guidance on what not to put in there, previously. Good information and I confirmed that this is not a concern for me. I solved the issue though. I verified that the the user "apache" does exist on the system (not sure how it was created) and that it is part of the users group. I made sure to change all my file permissions in the shares to 775 so that all users can modify, just in case. I had been setting everything as 755, previously, where only the 1stadminuser:users could modify existing files, I guess.
Some things to note from this rabbit hole dive, though:
- The wording in the section about revised mount_share_locally (https://wiki.amahi.org/index.php/Mount_ ... es_locally) absolutely makes it seem as if there is a separate script to run the samba shares mounted at /mnt/apache and, as you noted, there is not a separate one. It's a bit confusing is all.
- It seems that if someone was truly wanting to have a separate /mnt/apache share, a second script would be needed and not just the share query line change listed in the instructions as just editing the original script mounts the local shares as /mnt/samba. As I found though, this was not applicable in Amahi 10 as the apache user is already part of the users group and Amahi creates samba shares with permissions of 775, already (as seen from inspecting smb.conf).
- The comment on the mount_shares_locally wiki page page saying to change line 25 to
Code: Select all
mysql -u root -p hda -e "select name from shares" hda_production | grep -v "^name$" | xargs -d "\n" mkdir -p
has an added space between -p and hda that does not seem to allow the script to function. I left it as "-phda" as it was in the download script
(http://dl.amahi.org/mount_shares_locally.fedora) from instructions for Amahi 7/8/9.
- The mount_shares_locally script included in /usr/share/hda-ctl/ (Amahi 10 instructions) has a different database login and password than the standard one of root/hda that is listed everywhere else on the wiki and forums. Both accounts seem to work but I don't know if the credentials in the script included locally with Amahi 10 have different permissions to the db. I changed it to root/hda as that had worked for me, prior. This presents a problem with the last point though, that if someone changed the line in accordance with details on the wiki page, there would be a space between -p and hda
- The mount_shares_locally script instructions for 7/8/9 works just fine with Amahi 10 as the script is still available for download from the link. As stated before, that version has what appears to be the best db login creds and no space in "-phda"
Anyway, I am no Linux (or Amahi) expert and these past weeks have been a crash course in setting up and admin'ing something besides a Windows Home Server box (coming from an old HP EX490 upgraded with a monitor header and faster/more processor/ram
). It has been a fun, time consuming, and sometimes frustrating experience. Rewarding though, overall. That said, I may not be correct on every detail I have listed here, I only wanted to try and contribute what I can as I have spent a ton of time scouring the Amahi wiki and forums and am super grateful for these resources of collective knowledge and the people who contributed. Maybe someone else that comes after can glean some tidbits from my experience.