View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 5 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue May 19, 2009 1:24 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 19, 2009 1:55 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 20, 2009 1:58 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 20, 2009 2:49 am 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
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.

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 20, 2009 1:17 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 69 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu