My first steps in using SAB on Amahi, in need of help

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: My first steps in using SAB on Amahi, in need of help

Postby muppets4 » Sun Oct 16, 2011 2:47 am

I tried to mount the shares locally, as suggested by bigmango. I get an error accessing the .smb file:

Code: Select all

[root@HomeServer init.d]# nano mount_shares_locally [root@HomeServer init.d]# nano /home/muppets4/.smb_credentials​ [root@HomeServer init.d]# service mount_shares_locally start Mounting Samba shares locally: error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials
In the credential file I've put:
username=muppets4
password=XXX (my password)
domain=HOME (where do I find this one? I've left it at the standard)

Using nano I created the .smb file, but when I look in the folder itself, there is no .smb file. Is that what's going wrong? anyone?

edit: I don't know if it adds anything, but through the desktop envirement I cannot edit the .smb file due to not being the owner (root is)

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

Re: My first steps in using SAB on Amahi, in need of help

Postby bigfoot65 » Sun Oct 16, 2011 6:22 am

The domain in the credentials file is the one you chose to use on install. It defaults to home, but could be different. Also, ensure you follow the wiki guidance exactly.

Most things like this must be done from the command line, not desktop. That is probably the cause of your problems.
ßîgƒσστ65
Applications Manager

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

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: My first steps in using SAB on Amahi, in need of help

Postby muppets4 » Sun Oct 16, 2011 6:47 am

I did everything with the terminal. The domain i have changed now. It seems that thefile cannot be accessed.

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

Re: My first steps in using SAB on Amahi, in need of help

Postby bigfoot65 » Sun Oct 16, 2011 7:03 am

Ensure it is /home/YourHDA_username/.smb_credentials​ with YourHDA_username being your admin user. Also is important that the dot is in front of the file name as indicated.

I am using it with no problems.
ßîgƒσστ65
Applications Manager

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

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: My first steps in using SAB on Amahi, in need of help

Postby muppets4 » Sun Oct 16, 2011 11:02 am

All settings seem ok. I think I may be on to something else.

The .smb_credentials file is in the folder /home/muppets4/ .But still the script reports "error -1 (Unknown error 18446744073709551615) opening credential file /home/muppets4/.smb_credentials" It looks like it can't find it. When I try to do this (when being in /home/muppets4/):

chown -R muppets4 .smb_credentials

it reports: chown: cannot access `.smb_credentials': No such file or directory

When I browse the files in the desktop environment, I can't see the file untill I tell it to show hidden files too. Is that something to work on?

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

Re: My first steps in using SAB on Amahi, in need of help

Postby bigfoot65 » Sun Oct 16, 2011 2:10 pm

Ok, the . in front of the file name makes it hidden. That is normal. Try chown muppets4:users .smb_credentials. If you still get an error, try removing the file and recreating it.

Make sure you enter the info in the file manually. Do not copy it from the wiki as there are some hidden characters that creep in.
ßîgƒσστ65
Applications Manager

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

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: My first steps in using SAB on Amahi, in need of help

Postby muppets4 » Sun Oct 16, 2011 2:42 pm

Just recreated it. Error message is now:

Code: Select all

[root@HomeServer muppets4]# nano .smb_credentials [root@HomeServer muppets4]# chown muppets4:users .smb_credentials [root@HomeServer muppets4]# service mount_shares_locally start Mounting Samba shares locally: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) mkdir: missing operand Try `mkdir --help' for more information.
typed it in by hand. And the file contains the following:
username=muppets4
password=XXXXX (own pass)
domain=HomeServer

When I do a hostname command, I get 'HomeServer' in return. My network workgroup is MSHOME

ps the username I filled in at the other file is also muppets4

EDIT: I should mention that in a attempt to enter the MySQL db, I manually reset the root@localhost password. I shouldnt have done that, but I don't know how to repair that

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

Re: My first steps in using SAB on Amahi, in need of help

Postby bigfoot65 » Sun Oct 16, 2011 2:56 pm

Ok, if the dashboard work group name is MSHOME, make that the domain in your .smb_credentials. It's Samba that we need to match.
ßîgƒσστ65
Applications Manager

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

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: My first steps in using SAB on Amahi, in need of help

Postby muppets4 » Sun Oct 16, 2011 3:04 pm

I just did. Unfortunately the error is still the same.

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

Re: My first steps in using SAB on Amahi, in need of help

Postby bigfoot65 » Sun Oct 16, 2011 6:08 pm

Looks like my .smb_credentials is owned by root:root. Also, did you change the user name in the /etc/init.d/mount_shares_locally?

Just trying to figure out what could be wrong. That file should be owned by root:root as well. Also, check to see that ​cifs-utils​ is installed. If not as root user, do ​yum install cifs-utils​.
ßîgƒσστ65
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 48 guests