1 |
On Mon, 2010-06-14 at 22:43 +0100, Stroller wrote: |
2 |
> On 14 Jun 2010, at 21:41, Michael Sullivan wrote: |
3 |
> > ... When I try to connect to the samba share from my |
4 |
> > linux install, I get this: |
5 |
> > |
6 |
> > michael@camille ~ $ smbclient //carter//home |
7 |
> > Enter michael's password: |
8 |
> > Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] |
9 |
> > tree connect failed: NT_STATUS_BAD_NETWORK_NAME |
10 |
> > michael@camille ~ $ smbclient //carter//michael |
11 |
> > Enter michael's password: |
12 |
> > Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] |
13 |
> > tree connect failed: NT_STATUS_BAD_NETWORK_NAME |
14 |
> > |
15 |
> > (The host name is carter, and I didn't understand what the second part |
16 |
> > should be.) |
17 |
> |
18 |
> If you're referring to the //first/second syntax, then the first part |
19 |
> is the computer name, the second part the share name. |
20 |
> |
21 |
> > Also, I didn't know if "michael's password" meant my password on my |
22 |
> > local box, my password on the remote box, or some password I set up |
23 |
> > for |
24 |
> > Samba forever ago... |
25 |
> |
26 |
> The second / third option. |
27 |
> |
28 |
> Each user on the Samba server has a password, but it isn't the same as |
29 |
> their system password. Log on to the Samba server (i.e. `ssh carter`) |
30 |
> and run smbpasswd (possibly `sudo smbpasswd -U michael`). |
31 |
> |
32 |
> > Here's my /etc/samba/smb.conf file: |
33 |
> > ... |
34 |
> > hosts allow = 192.168.1. 127. |
35 |
> |
36 |
> If it's been some time since this system was used, are you still using |
37 |
> the 192.168.1.x subnet? If your ISP sent you a new router, you might |
38 |
> now be on 192.168.0.x. IMO change this to: |
39 |
> hosts allow = 192.168. 127. |
40 |
> |
41 |
> Also run `smbtree` (works without a password). |
42 |
> |
43 |
> I appreciate that Samba tends not to make any sense when you're |
44 |
> inexperienced, but there ought to be lots of troubleshooting guides |
45 |
> out there. Google "troubleshooting samba", follow through the steps |
46 |
> suggested by 2 or 3 and report back & tell us what you've done. |
47 |
> |
48 |
> Stroller. |
49 |
> |
50 |
> |
51 |
I've got a couple of new errors in the logs: |
52 |
|
53 |
>From /var/log/samba/log.__ffff_192.168.1.3: |
54 |
[2010/06/15 11:56:58, 0] lib/util_sock.c:1564(matchname) |
55 |
matchname: host name/address mismatch: ::ffff:192.168.1.3 != |
56 |
camille.espersunited.com |
57 |
[2010/06/15 11:56:58, 0] lib/util_sock.c:1685(get_peer_name) |
58 |
Matchname failed on camille.espersunited.com ::ffff:192.168.1.3 |
59 |
|
60 |
and from /var/log/samba/log.camille: |
61 |
|
62 |
[2010/06/15 11:56:58, 0] smbd/service.c:942(make_connection_snum) |
63 |
Can't become connected user! |
64 |
|
65 |
|
66 |
What's with the ffff:192.168.1.3? Camille's address IS 192.168.1.3, and |
67 |
it seems to know that because it calls the host at the address |
68 |
'camille'... |