1 |
On Mon, 2010-06-14 at 22:43 +0100, Stroller wrote: |
2 |
> If it's been some time since this system was used, are you still using |
3 |
> the 192.168.1.x subnet? If your ISP sent you a new router, you might |
4 |
> now be on 192.168.0.x. IMO change this to: |
5 |
> hosts allow = 192.168. 127. |
6 |
> |
7 |
I bought a brand new Linksys Wireless-N router a few months ago. I |
8 |
configure it to start addresses after 192.168.1.1 because that's what |
9 |
we've always used, it's what all the computers on our LAN are set up |
10 |
for, and I see no reason to change it. |
11 |
> Also run `smbtree` (works without a password). |
12 |
> |
13 |
> I appreciate that Samba tends not to make any sense when you're |
14 |
> inexperienced, but there ought to be lots of troubleshooting guides |
15 |
> out there. Google "troubleshooting samba", follow through the steps |
16 |
> suggested by 2 or 3 and report back & tell us what you've done. |
17 |
> |
18 |
> Stroller. |
19 |
> |
20 |
|
21 |
I actually started today at |
22 |
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html |
23 |
|
24 |
carter ~ # testparm /etc/samba/smb.conf |
25 |
Load smb config files from /etc/samba/smb.conf |
26 |
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) |
27 |
Processing section "[homes]" |
28 |
Processing section "[printers]" |
29 |
Processing section "[print$]" |
30 |
Processing section "[tmp]" |
31 |
Loaded services file OK. |
32 |
Server role: ROLE_STANDALONE |
33 |
Press enter to see a dump of your service definitions |
34 |
|
35 |
[global] |
36 |
workgroup = MYGROUP |
37 |
server string = Samba Server %v |
38 |
map to guest = Bad User |
39 |
log file = /var/log/samba/log.%m |
40 |
max log size = 50 |
41 |
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 |
42 |
printcap name = cups |
43 |
dns proxy = No |
44 |
hosts allow = 192.168.1., 127. |
45 |
|
46 |
[homes] |
47 |
comment = Home Directories |
48 |
path = /samba |
49 |
valid users = michael, amy |
50 |
read only = No |
51 |
browseable = No |
52 |
browsable = No |
53 |
|
54 |
[printers] |
55 |
comment = All Printers |
56 |
path = /var/spool/samba |
57 |
printable = Yes |
58 |
browseable = No |
59 |
browsable = No |
60 |
|
61 |
[print$] |
62 |
path = /var/lib/samba/printers |
63 |
write list = @adm, root |
64 |
guest ok = Yes |
65 |
|
66 |
[tmp] |
67 |
comment = Temporary file space |
68 |
path = /samba |
69 |
valid users = michael, amy |
70 |
read only = No |
71 |
guest ok = Yes |
72 |
|
73 |
michael@camille ~ $ smbclient -L carter |
74 |
Enter michael's password: |
75 |
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] |
76 |
|
77 |
Sharename Type Comment |
78 |
--------- ---- ------- |
79 |
print$ Disk |
80 |
tmp Disk Temporary file space |
81 |
IPC$ IPC IPC Service (Samba Server 3.4.6) |
82 |
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] |
83 |
|
84 |
Server Comment |
85 |
--------- ------- |
86 |
CARTER Samba Server 3.4.6 |
87 |
|
88 |
Workgroup Master |
89 |
--------- ------- |
90 |
MYGROUP CARTER |
91 |
|
92 |
michael@camille ~ $ smbclient //carter/tmp |
93 |
Enter michael's password: |
94 |
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] |
95 |
tree connect failed: NT_STATUS_LOGON_FAILURE |
96 |
|
97 |
|
98 |
Then I went to the Samba Checklist: |
99 |
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html |
100 |
|
101 |
1: Run testparm; already did that. |
102 |
2: Ping test: |
103 |
|
104 |
michael@camille ~ $ ping carter |
105 |
PING carter.espersunited.com (192.168.1.2) 56(84) bytes of data. |
106 |
64 bytes from carter.espersunited.com (192.168.1.2): icmp_seq=1 ttl=64 |
107 |
time=0.157 ms |
108 |
64 bytes from carter.espersunited.com (192.168.1.2): icmp_seq=2 ttl=64 |
109 |
time=0.145 ms |
110 |
^C |
111 |
--- carter.espersunited.com ping statistics --- |
112 |
2 packets transmitted, 2 received, 0% packet loss, time 999ms |
113 |
rtt min/avg/max/mdev = 0.145/0.151/0.157/0.006 ms |
114 |
|
115 |
carter ~ # ping camille |
116 |
PING camille.espersunited.com (192.168.1.3) 56(84) bytes of data. |
117 |
64 bytes from camille.espersunited.com (192.168.1.3): icmp_seq=1 ttl=64 |
118 |
time=0.158 ms |
119 |
64 bytes from camille.espersunited.com (192.168.1.3): icmp_seq=2 ttl=64 |
120 |
time=0.155 ms |
121 |
^C |
122 |
--- camille.espersunited.com ping statistics --- |
123 |
2 packets transmitted, 2 received, 0% packet loss, time 999ms |
124 |
rtt min/avg/max/mdev = 0.155/0.156/0.158/0.012 ms |
125 |
|
126 |
3: carter ~ # smbclient -L carter |
127 |
Enter root's password: |
128 |
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] |
129 |
|
130 |
Sharename Type Comment |
131 |
--------- ---- ------- |
132 |
print$ Disk |
133 |
tmp Disk Temporary file space |
134 |
IPC$ IPC IPC Service (Samba Server 3.4.6) |
135 |
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.4.6] |
136 |
|
137 |
Server Comment |
138 |
--------- ------- |
139 |
CARTER Samba Server 3.4.6 |
140 |
|
141 |
Workgroup Master |
142 |
--------- ------- |
143 |
MYGROUP CARTER |
144 |
|
145 |
4: michael@camille ~ $ nmblookup -B BIGSERVER __SAMBA__ |
146 |
querying __SAMBA__ on 192.168.1.255 |
147 |
192.168.1.2 __SAMBA__<00> |
148 |
|
149 |
4: carter ~ # nmblookup -B camille * |
150 |
querying xorg.conf.new on 192.168.1.3 |
151 |
name_query failed to find name xorg.conf.new |
152 |
|
153 |
*I'm not sure what finding xorg.conf.new has to do with Samba, but it's |
154 |
on the checklist... |
155 |
|
156 |
And this is getting me nowhere very very quickly. |