public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file?
@ 2010-06-21 21:44 Michael Sullivan
  2010-06-21 22:23 ` Alan McKinnon
  2010-07-03  2:40 ` Greg Fitzgerald
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Sullivan @ 2010-06-21 21:44 UTC (permalink / raw
  To: gentoo-user

I just rebooted the computer to make sure this wasn't some weird RAM
remnant, but the computer booted up:

carter ~ # /etc/init.d/samba status
 * status:  started
carter ~ # cat /etc/samba/smb.conf
[global] 
workgroup = MYGROUP 
security = user 
encrypt passwords = yes 
guest account = guest
wins support = yes
local master = yes 
os level = 99 
domain master = yes 
preferred master = yes
hosts allow = 192.168.1. 127.
interfaces = eth0

[tmp] 
path=/tmp 
writeable=yes

[homes]
path=/samba/michael
valid users=michael
writable=yes
carter ~ # testparm 
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section "[tmp]"
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	workgroup = MYGROUP
	interfaces = eth0
	guest account = guest
	os level = 99
	preferred master = Yes
	domain master = Yes
	wins support = Yes
	hosts allow = 192.168.1., 127.

[tmp]
	path = /tmp
	read only = No

[homes]
	path = /samba/michael
	valid users = michael
	read only = No

At the top there you see that Samba IS started.  Under that you see MY
smb.conf, and at the bottom you see the smb.conf that's being loaded.
Nothing really in the logs that would suggest what's going on here:

carter ~ # cat /var/log/samba/*
cat: /var/log/samba/cores: Is a directory
[2010/06/21 16:39:34,  0] nmbd/nmbd.c:854(main)
  nmbd version 3.4.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/21 16:39:34,  0] nmbd/asyncdns.c:155(start_async_dns)
  started asyncdns process 20980
[2010/06/21 16:39:34,  0]
nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins)
  become_domain_master_browser_wins:
  Attempting to become domain master browser on workgroup MYGROUP,
subnet UNICAST_SUBNET.
[2010/06/21 16:39:34,  0]
nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins)
  become_domain_master_browser_wins: querying WINS server from IP
192.168.1.2 for domain master browser name MYGROUP<1b> on workgroup
MYGROUP
[2010/06/21 16:39:40,  0]
nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
  *****
  
  Samba server CARTER is now a domain master browser for workgroup
MYGROUP on subnet UNICAST_SUBNET
  
  *****
[2010/06/21 16:39:40,  0]
nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast)
  become_domain_master_browser_bcast:
  Attempting to become domain master browser on workgroup MYGROUP on
subnet 192.168.1.2
[2010/06/21 16:39:40,  0]
nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast)
  become_domain_master_browser_bcast: querying subnet 192.168.1.2 for
domain master browser on workgroup MYGROUP
[2010/06/21 16:39:48,  0]
nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
  *****
  
  Samba server CARTER is now a domain master browser for workgroup
MYGROUP on subnet 192.168.1.2
  
  *****
[2010/06/21 16:39:56,  0]
nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
  *****
  
  Samba name server CARTER is now a local master browser for workgroup
MYGROUP on subnet 192.168.1.2
  
  *****
[2010/06/21 16:39:33,  0] smbd/server.c:1073(main)
  smbd version 3.4.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
[2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
file or directory
[2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
  Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
file or directory
[2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
[2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file?
  2010-06-21 21:44 [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file? Michael Sullivan
@ 2010-06-21 22:23 ` Alan McKinnon
  2010-07-03  2:40 ` Greg Fitzgerald
  1 sibling, 0 replies; 3+ messages in thread
From: Alan McKinnon @ 2010-06-21 22:23 UTC (permalink / raw
  To: gentoo-user; +Cc: Michael Sullivan

On Monday 21 June 2010 23:44:58 Michael Sullivan wrote:
> I just rebooted the computer to make sure this wasn't some weird RAM
> remnant, but the computer booted up:

Everything below is correct. What makes you think its wrong?

testparm does not dump a config file, it tells you what setting are IN EFFECT.

"writeable=yes" and "read only = No" are exactly the same thing. You used the 
former, samba uses the latter internally and translated it.

There is no problem here.




> 
> carter ~ # /etc/init.d/samba status
>  * status:  started
> carter ~ # cat /etc/samba/smb.conf
> [global]
> workgroup = MYGROUP
> security = user
> encrypt passwords = yes
> guest account = guest
> wins support = yes
> local master = yes
> os level = 99
> domain master = yes
> preferred master = yes
> hosts allow = 192.168.1. 127.
> interfaces = eth0
> 
> [tmp]
> path=/tmp
> writeable=yes
> 
> [homes]
> path=/samba/michael
> valid users=michael
> writable=yes
> carter ~ # testparm
> Load smb config files from /etc/samba/smb.conf
> rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
> Processing section "[tmp]"
> Processing section "[homes]"
> Loaded services file OK.
> Server role: ROLE_STANDALONE
> Press enter to see a dump of your service definitions
> 
> [global]
> 	workgroup = MYGROUP
> 	interfaces = eth0
> 	guest account = guest
> 	os level = 99
> 	preferred master = Yes
> 	domain master = Yes
> 	wins support = Yes
> 	hosts allow = 192.168.1., 127.
> 
> [tmp]
> 	path = /tmp
> 	read only = No
> 
> [homes]
> 	path = /samba/michael
> 	valid users = michael
> 	read only = No
> 
> At the top there you see that Samba IS started.  Under that you see MY
> smb.conf, and at the bottom you see the smb.conf that's being loaded.
> Nothing really in the logs that would suggest what's going on here:
> 
> carter ~ # cat /var/log/samba/*
> cat: /var/log/samba/cores: Is a directory
> [2010/06/21 16:39:34,  0] nmbd/nmbd.c:854(main)
>   nmbd version 3.4.6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/06/21 16:39:34,  0] nmbd/asyncdns.c:155(start_async_dns)
>   started asyncdns process 20980
> [2010/06/21 16:39:34,  0]
> nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins)
>   become_domain_master_browser_wins:
>   Attempting to become domain master browser on workgroup MYGROUP,
> subnet UNICAST_SUBNET.
> [2010/06/21 16:39:34,  0]
> nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins)
>   become_domain_master_browser_wins: querying WINS server from IP
> 192.168.1.2 for domain master browser name MYGROUP<1b> on workgroup
> MYGROUP
> [2010/06/21 16:39:40,  0]
> nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
>   *****
> 
>   Samba server CARTER is now a domain master browser for workgroup
> MYGROUP on subnet UNICAST_SUBNET
> 
>   *****
> [2010/06/21 16:39:40,  0]
> nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast)
>   become_domain_master_browser_bcast:
>   Attempting to become domain master browser on workgroup MYGROUP on
> subnet 192.168.1.2
> [2010/06/21 16:39:40,  0]
> nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast)
>   become_domain_master_browser_bcast: querying subnet 192.168.1.2 for
> domain master browser on workgroup MYGROUP
> [2010/06/21 16:39:48,  0]
> nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
>   *****
> 
>   Samba server CARTER is now a domain master browser for workgroup
> MYGROUP on subnet 192.168.1.2
> 
>   *****
> [2010/06/21 16:39:56,  0]
> nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
>   *****
> 
>   Samba name server CARTER is now a local master browser for workgroup
> MYGROUP on subnet 192.168.1.2
> 
>   *****
> [2010/06/21 16:39:33,  0] smbd/server.c:1073(main)
>   smbd version 3.4.6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
>   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
> file or directory
> [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
>   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
> file or directory
> [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
>   smbd_open_once_socket: open_socket_in: Address already in use
> [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
>   smbd_open_once_socket: open_socket_in: Address already in use

-- 
alan dot mckinnon at gmail dot com



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file?
  2010-06-21 21:44 [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file? Michael Sullivan
  2010-06-21 22:23 ` Alan McKinnon
@ 2010-07-03  2:40 ` Greg Fitzgerald
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Fitzgerald @ 2010-07-03  2:40 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 4525 bytes --]

On Mon, Jun 21, 2010 at 04:44:58 -0500, Michael Sullivan wrote:
> I just rebooted the computer to make sure this wasn't some weird RAM
> remnant, but the computer booted up:
> 
> carter ~ # /etc/init.d/samba status
>  * status:  started
> carter ~ # cat /etc/samba/smb.conf
> [global] 
> workgroup = MYGROUP 
> security = user 
> encrypt passwords = yes 
> guest account = guest
> wins support = yes
> local master = yes 
> os level = 99 
> domain master = yes 
> preferred master = yes
> hosts allow = 192.168.1. 127.
> interfaces = eth0
> 
> [tmp] 
> path=/tmp 
> writeable=yes
> 
> [homes]
> path=/samba/michael
> valid users=michael
> writable=yes
> carter ~ # testparm 
> Load smb config files from /etc/samba/smb.conf
> rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
> Processing section "[tmp]"
> Processing section "[homes]"
> Loaded services file OK.
> Server role: ROLE_STANDALONE
> Press enter to see a dump of your service definitions
> 
> [global]
> 	workgroup = MYGROUP
> 	interfaces = eth0
> 	guest account = guest
> 	os level = 99
> 	preferred master = Yes
> 	domain master = Yes
> 	wins support = Yes
> 	hosts allow = 192.168.1., 127.
> 
> [tmp]
> 	path = /tmp
> 	read only = No
> 
> [homes]
> 	path = /samba/michael
> 	valid users = michael
> 	read only = No
> 
> At the top there you see that Samba IS started.  Under that you see MY
> smb.conf, and at the bottom you see the smb.conf that's being loaded.
> Nothing really in the logs that would suggest what's going on here:
> 
> carter ~ # cat /var/log/samba/*
> cat: /var/log/samba/cores: Is a directory
> [2010/06/21 16:39:34,  0] nmbd/nmbd.c:854(main)
>   nmbd version 3.4.6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/06/21 16:39:34,  0] nmbd/asyncdns.c:155(start_async_dns)
>   started asyncdns process 20980
> [2010/06/21 16:39:34,  0]
> nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins)
>   become_domain_master_browser_wins:
>   Attempting to become domain master browser on workgroup MYGROUP,
> subnet UNICAST_SUBNET.
> [2010/06/21 16:39:34,  0]
> nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins)
>   become_domain_master_browser_wins: querying WINS server from IP
> 192.168.1.2 for domain master browser name MYGROUP<1b> on workgroup
> MYGROUP
> [2010/06/21 16:39:40,  0]
> nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
>   *****
>   
>   Samba server CARTER is now a domain master browser for workgroup
> MYGROUP on subnet UNICAST_SUBNET
>   
>   *****
> [2010/06/21 16:39:40,  0]
> nmbd/nmbd_become_dmb.c:292(become_domain_master_browser_bcast)
>   become_domain_master_browser_bcast:
>   Attempting to become domain master browser on workgroup MYGROUP on
> subnet 192.168.1.2
> [2010/06/21 16:39:40,  0]
> nmbd/nmbd_become_dmb.c:305(become_domain_master_browser_bcast)
>   become_domain_master_browser_bcast: querying subnet 192.168.1.2 for
> domain master browser on workgroup MYGROUP
> [2010/06/21 16:39:48,  0]
> nmbd/nmbd_become_dmb.c:110(become_domain_master_stage2)
>   *****
>   
>   Samba server CARTER is now a domain master browser for workgroup
> MYGROUP on subnet 192.168.1.2
>   
>   *****
> [2010/06/21 16:39:56,  0]
> nmbd/nmbd_become_lmb.c:395(become_local_master_stage2)
>   *****
>   
>   Samba name server CARTER is now a local master browser for workgroup
> MYGROUP on subnet 192.168.1.2
>   
>   *****
> [2010/06/21 16:39:33,  0] smbd/server.c:1073(main)
>   smbd version 3.4.6 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2009
> [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
>   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
> file or directory
> [2010/06/21 16:39:33,  0] printing/print_cups.c:103(cups_connect)
>   Unable to connect to CUPS server /var/run/cups/cups.sock:631 - No such
> file or directory
> [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
>   smbd_open_once_socket: open_socket_in: Address already in use
> [2010/06/21 16:39:34,  0] smbd/server.c:457(smbd_open_one_socket)
>   smbd_open_once_socket: open_socket_in: Address already in use
> 
> 
> 

I recently ran into what appears to be the same issue on OpenBSD. For
some reason commenting out the interfaces setting did it for me. I got a
feeling there maybe a bug, but I haven't had time to look into it more.

-- 
Best Regards,
Greg Fitzgerald

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-03  2:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 21:44 [gentoo-user] Samba freakiness; why isn't it reading MY /etc/samba/smb.conf file? Michael Sullivan
2010-06-21 22:23 ` Alan McKinnon
2010-07-03  2:40 ` Greg Fitzgerald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox