Page 1 of 1
Mount shares locally script errors on Ubunto 12.04 server
Posted: Fri Oct 05, 2012 4:56 am
by joiseystud
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]
Re: Mount shares locally script errors on Ubunto 12.04 serve
Posted: Fri Oct 05, 2012 10:10 am
by bigfoot65
Ensure you followed the wiki guidance exactly. It sounds like you did not set the permissions on the .smb_credentials correctly.
Re: Mount shares locally script errors on Ubunto 12.04 serve
Posted: Sat Oct 06, 2012 7:31 am
by joiseystud
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
Posted: Sat Oct 06, 2012 7:37 am
by bigfoot65
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.
Re: Mount shares locally script errors on Ubunto 12.04 serve
Posted: Sat Oct 06, 2012 8:27 am
by joiseystud
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.
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.
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
Posted: Sat Oct 06, 2012 9:05 am
by bigfoot65
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.