LinHES Forums http://forums.linhes.org/ |
|
Samba share, can't connect http://forums.linhes.org/viewtopic.php?f=6&t=19873 |
Page 1 of 1 |
Author: | Girkers [ Tue May 19, 2009 1:24 am ] |
Post subject: | Samba share, can't connect |
I am having a big problem connecting to my Mythbox. My main Server which acts as a domain controller died on the weekend and I have now finally got it backup and running and fully restored. Thing is now I can not connect via Samba to my server, when I could, I could no longer write to the share. I have since played with the smb.conf and whilst I can see my mythbox I can no longer connect via samba, it prompts me for a user name and password and not matter which accounts I try, both local to the myth box and domain accounts they don't work. My config files are thus: Code: [global] workgroup = ontheside hosts allow = 192.168.254. log file = /var/log/samba/log.%m dns proxy = No load printers = No server string = mythtv os level = 20 domain master = No preferred master = No include = /etc/samba/smb.conf.home include = /etc/samba/smb.conf.media And smb.conf.media: Code: [myth] path = /myth public = yes only guest = no writeable = yes printable = no force user = mythtv force group = mythtv create mask = 0755 And smb.conf.home: Code: [home]
path = /home/mythtv/ public = yes only guest = yes writeable = yes printable = no force user = mythtv force group = mythtv create mask = 0755 Could anyone help me with my problem as I have some new movies I need to put onto my box for my wife to watch. |
Author: | graysky [ Tue May 19, 2009 1:55 pm ] |
Post subject: | |
Check your UID/GIDs on both boxes, if they differ you can run into problems. For example, my username on my workstation (Arch Linux) is obviously NOT 'mythtv' and my workstation user has the same UID/GID as the mythtv user on KM. I too couldn't get read/write to work via Samba without the following line which I call via a shell script but you could just as easily put it in your /etc/fstab too: Code: sudo mount -t cifs -o credentials=/root/.smbmyth,uid=1000,gid=1000 //mythtv-mbe/myth ~/myth The /root/.smbmyth file simply contains two lines to keep the mythtv user and password secure and it is chmodd'ed 700 w/ root as the owner. Example /root/.smbmyth Code: username=mythtv password=mythtvpassword Even without Samba, you can still xfer files to/from your Linux box. Try securecopy (scp under Linux). I believe there is a PuTTY equilivant for Win users as well. Example using scp from Linux to Linux: Code: $ scp /path/to/file/*.mpg username@mythtv:"/path/where/you/want/them/"
I believe you can omit the quotation marks if you're sending a single file but read the man page and/or google it. |
Author: | Girkers [ Wed May 20, 2009 1:58 am ] |
Post subject: | |
I am using Winblows to connect to my Mythbox and I have actually downloaded and tried to connected using WinSCP, but that is not working. I can SSH into the box no worries, just can't get Samba to work. I have had it working fine with the extra stuff you mention in your post graysky, so it seems a bit off the beaten track for what I am after. I worked out there is a log file for my computer trying to authentic to the mythbox, an excerpt is: Code: [2009/05/19 16:43:02, 0] lib/util_sock.c:matchname(1680)
matchname: host name/address mismatch: ::ffff:192.168.254.96 != pc-00096.gkco$ [2009/05/19 16:43:02, 0] lib/util_sock.c:get_peer_name(1801) Matchname failed on pc-00096.gkcomputerservices.com ::ffff:192.168.254.96 I will do a google on it shortly and see where that leads me. |
Author: | Girkers [ Wed May 20, 2009 2:49 am ] |
Post subject: | |
The solution was a lot simplier than I thought. I did a smbpasswd -a [username] and when I tried to connect, I used the username and password I had just set all was good. Thanks to all that took the time to read my post and to graysky for trying a possible solution. |
Author: | graysky [ Wed May 20, 2009 1:17 pm ] |
Post subject: | |
Girkers wrote: Thanks to all that took the time to read my post and to graysky for trying a possible solution.
You're welcome. That's the thing about shots on goal. Keep slapping the puck towards the net, one time, sooner or later, it'll go in! |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |