1 |
On Monday 21 June 2010 23:44:58 Michael Sullivan wrote: |
2 |
> I just rebooted the computer to make sure this wasn't some weird RAM |
3 |
> remnant, but the computer booted up: |
4 |
|
5 |
Everything below is correct. What makes you think its wrong? |
6 |
|
7 |
testparm does not dump a config file, it tells you what setting are IN EFFECT. |
8 |
|
9 |
"writeable=yes" and "read only = No" are exactly the same thing. You used the |
10 |
former, samba uses the latter internally and translated it. |
11 |
|
12 |
There is no problem here. |
13 |
|
14 |
|
15 |
|
16 |
|
17 |
> |
18 |
> carter ~ # /etc/init.d/samba status |
19 |
> * status: started |
20 |
> carter ~ # cat /etc/samba/smb.conf |
21 |
> [global] |
22 |
> workgroup = MYGROUP |
23 |
> security = user |
24 |
> encrypt passwords = yes |
25 |
> guest account = guest |
26 |
> wins support = yes |
27 |
> local master = yes |
28 |
> os level = 99 |
29 |
> domain master = yes |
30 |
> preferred master = yes |
31 |
> hosts allow = 192.168.1. 127. |
32 |
> interfaces = eth0 |
33 |
> |
34 |
> [tmp] |
35 |
> path=/tmp |
36 |
> writeable=yes |
37 |
> |
38 |
> [homes] |
39 |
> path=/samba/michael |
40 |
> valid users=michael |
41 |
> writable=yes |
42 |
> carter ~ # testparm |
43 |
> Load smb config files from /etc/samba/smb.conf |
44 |
> rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) |
45 |
> Processing section "[tmp]" |
46 |
> Processing section "[homes]" |
47 |
> Loaded services file OK. |
48 |
> Server role: ROLE_STANDALONE |
49 |
> Press enter to see a dump of your service definitions |
50 |
> |
51 |
> [global] |
52 |
> workgroup = MYGROUP |
53 |
> interfaces = eth0 |
54 |
> guest account = guest |
55 |
> os level = 99 |
56 |
> preferred master = Yes |
57 |
> domain master = Yes |
58 |
> wins support = Yes |
59 |
> hosts allow = 192.168.1., 127. |
60 |
> |
61 |
> [tmp] |
62 |
> path = /tmp |
63 |
> read only = No |
64 |
> |
65 |
> [homes] |
66 |
> path = /samba/michael |
67 |
> valid users = michael |
68 |
> read only = No |
69 |
> |
70 |
> At the top there you see that Samba IS started. Under that you see MY |
71 |
> smb.conf, and at the bottom you see the smb.conf that's being loaded. |
72 |
> Nothing really in the logs that would suggest what's going on here: |
73 |
> |
74 |
> carter ~ # cat /var/log/samba/* |
75 |
> cat: /var/log/samba/cores: Is a directory |
76 |
> [2010/06/21 16:39:34, 0] nmbd/nmbd.c:854(main) |
77 |
> nmbd version 3.4.6 started. |
78 |
> Copyright Andrew Tridgell and the Samba Team 1992-2009 |
79 |
> [2010/06/21 16:39:34, 0] nmbd/asyncdns.c:155(start_async_dns) |
80 |
> started asyncdns process 20980 |
81 |
> [2010/06/21 16:39:34, 0] |
82 |
> nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins) |
83 |
> become_domain_master_browser_wins: |
84 |
> Attempting to become domain master browser on workgroup MYGROUP, |
85 |
> subnet UNICAST_SUBNET. |
86 |
> [2010/06/21 16:39:34, 0] |
87 |
> nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins) |
88 |
> become_domain_master_browser_wins: querying WINS server from IP |
89 |
> 192.168.1.2 for domain master browser name MYGROUP<1b> on workgroup |
90 |
> MYGROUP |
91 |
> [2010/06/21 16:39:40, 0] |
92 |
> nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2) |
93 |
> ***** |
94 |
> |
95 |
> Samba server CARTER is now a domain master browser for workgroup |
96 |
> MYGROUP on subnet UNICAST_SUBNET |
97 |
> |
98 |
> ***** |
99 |
> [2010/06/21 16:39:40, 0] |
100 |
> nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast) |
101 |
> become_domain_master_browser_bcast: |
102 |
> Attempting to become domain master browser on workgroup MYGROUP on |
103 |
> subnet 192.168.1.2 |
104 |
> [2010/06/21 16:39:40, 0] |
105 |
> nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast) |
106 |
> become_domain_master_browser_bcast: querying subnet 192.168.1.2 for |
107 |
> domain master browser on workgroup MYGROUP |
108 |
> [2010/06/21 16:39:48, 0] |
109 |
> nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2) |
110 |
> ***** |
111 |
> |
112 |
> Samba server CARTER is now a domain master browser for workgroup |
113 |
> MYGROUP on subnet 192.168.1.2 |
114 |
> |
115 |
> ***** |
116 |
> [2010/06/21 16:39:56, 0] |
117 |
> nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) |
118 |
> ***** |
119 |
> |
120 |
> Samba name server CARTER is now a local master browser for workgroup |
121 |
> MYGROUP on subnet 192.168.1.2 |
122 |
> |
123 |
> ***** |
124 |
> [2010/06/21 16:39:33, 0] smbd/server.c:1073(main) |
125 |
> smbd version 3.4.6 started. |
126 |
> Copyright Andrew Tridgell and the Samba Team 1992-2009 |
127 |
> [2010/06/21 16:39:33, 0] printing/print_cups.c:103(cups_connect) |
128 |
> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such |
129 |
> file or directory |
130 |
> [2010/06/21 16:39:33, 0] printing/print_cups.c:103(cups_connect) |
131 |
> Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such |
132 |
> file or directory |
133 |
> [2010/06/21 16:39:34, 0] smbd/server.c:457(smbd_open_one_socket) |
134 |
> smbd_open_once_socket: open_socket_in: Address already in use |
135 |
> [2010/06/21 16:39:34, 0] smbd/server.c:457(smbd_open_one_socket) |
136 |
> smbd_open_once_socket: open_socket_in: Address already in use |
137 |
|
138 |
-- |
139 |
alan dot mckinnon at gmail dot com |