I installed the "mount_shares_locally" script per the instructions on the Amahi wiki, but I get the following error when trying to start the service(fyi, the "myuser" is actually the user account on the machine when I setup Amahi:
* Mounting Samba shares locally... Mounting share [Apps]
error -1 (Unknown error -1) opening credential file /home/myuser/.smb_credentials
Mounting share [Backups]
error -1 (Unknown error -1) opening credential file /home/myuser/.smb_credentials
Mounting share [Docs]
Mount shares locally script errors on Ubunto 12.04 server
-
- Posts: 9
- Joined: Fri Sep 28, 2012 6:54 am
Re: Mount shares locally script errors on Ubunto 12.04 serve
Ensure you followed the wiki guidance exactly. It sounds like you did not set the permissions on the .smb_credentials correctly.
ßî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: 9
- Joined: Fri Sep 28, 2012 6:54 am
Re: Mount shares locally script errors on Ubunto 12.04 serve
Ensure you followed the wiki guidance exactly. It sounds like you did not set the permissions on the .smb_credentials correctly.
Im pretty sure I followed the wiki exactly. I dont see anything there about setting the permission on the .smb_credentials file. It just says to create one.
here is the listing for the file:
-rw-r--r-- 1 0 0 47 Oct 5 07:36 .smb_credentials
http://wiki.amahi.org/index.php/Mount_Shares_Locally
Re: Mount shares locally script errors on Ubunto 12.04 serve
Is it located here /home/firstadminuser? Who owns the file? It should be owned by fristadminuser:users and not root. I presume the user name in the file matches the one you added to /etc/init.d/mount_shares_locally file.
ßî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: 9
- Joined: Fri Sep 28, 2012 6:54 am
Re: Mount shares locally script errors on Ubunto 12.04 serve
I fixed it. Turns out the issue was that when i created the filename I copied it from the wiki to make sure i didnt get something wrong. I guess that actually introduced an issue because the file name although appearing identical must have been using a different unicode for the underscore. I did this be trying to nano into the file and it was blank. I then reentered the info, and now there were two files that "appeared" identical.Is it located here /home/firstadminuser? Who owns the file? It should be owned by fristadminuser:users and not root. I presume the user name in the file matches the one you added to /etc/init.d/mount_shares_locally file.
Weird copy paste bug i guess between chrome and terminal. Maybe it would be good to clarify that the filename should be manually created, and also to chown the file to the first admin user just in case it was created as root or another user. Doesnt hurt to chown it for good measure.
sudo chown
Re: Mount shares locally script errors on Ubunto 12.04 serve
Yes there are copy and paste issues with the wiki. Often times it copies hidden characters which reeks havoc with things. Will add a disclaimer to that page if it does not already exist.
ßî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 12 guests