how to change smb.conf
Posted: Sun Jul 17, 2011 8:00 pm
by julsing
Hi,
For some time now the samba server in my 4.7 Meteohub and 2.3c NSLU is trying to become the master browser on my home network with some undesired effects.
So I dug into it and I find that there's a file smb.conf that can be altered to let the metehub never become a master browser at all by entering the following text.
[global]
domain master = no
local master = no
preferred master = no
os level = 0
How can I do this on the metehub?
Thanks
Frank
Re: how to change smb.conf
Posted: Sun Jul 17, 2011 9:00 pm
by julsing
I also get a number of errors. This is the smb server log:
[2011/07/15 12:45:50, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 12:45:50, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 13:17:51, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 13:17:51, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 13:49:51, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 13:49:51, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 14:21:52, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 14:21:52, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 14:53:52, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 14:53:52, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 15:57:53, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 15:57:53, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 16:29:53, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 16:29:53, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 17:01:53, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 17:01:54, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 17:33:54, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 17:33:54, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 18:05:54, 0] lib/util_sock.c:get_peer_addr(1229)
getpeername failed. Error was Transport endpoint is not connected
[2011/07/15 18:05:54, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 18:05:54, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 19:09:55, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 19:09:55, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 19:41:56, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 19:41:56, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 20:13:56, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 20:13:56, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 20:45:56, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 20:45:56, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 21:17:57, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 21:17:57, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 21:49:57, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 21:49:57, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/15 22:21:58, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.1.67. Error Connection reset by peer
[2011/07/15 22:21:58, 0] lib/util_sock.c:send_smb(769)
Error writing 4 bytes to client. -1. (Connection reset by peer)
[2011/07/17 09:32:21, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.1.70. Error = Connection reset by peer
[2011/07/17 09:33:21, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.1.70. Error = Connection reset by peer
[2011/07/17 09:35:57, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.1.70. Error = Connection reset by peer
[2011/07/17 09:58:31, 0] smbd/server.c:main(881)
standard input is not a socket, assuming -D option
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
[2011/07/17 09:58:32, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
[2011/07/17 10:35:23, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.1.70. Error = Connection reset by peer
[2011/07/17 19:35:58, 0] smbd/server.c:main(881)
standard input is not a socket, assuming -D option
[2011/07/17 19:35:59, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
[2011/07/17 19:35:59, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
[2011/07/17 19:35:59, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
[2011/07/17 19:35:59, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
[2011/07/17 19:35:59, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
[2011/07/17 19:35:59, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
[2011/07/17 19:35:59, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
[2011/07/17 19:36:00, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
[2011/07/17 19:36:00, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
[2011/07/17 19:36:00, 1] lib/account_pol.c:account_policy_get(329)
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
[2011/07/17 19:54:19, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.1.70. Error = Connection reset by peer
[2011/07/17 19:54:31, 1] smbd/service.c:make_connection_snum(941)
d529 (192.168.1.70) connect to service public initially as user root (uid=0, gid=0) (pid 1581)
[2011/07/17 20:01:54, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.1.81. Error = Connection reset by peer
[2011/07/17 20:09:49, 1] smbd/service.c:close_cnum(1141)
d529 (192.168.1.70) closed connection to service public
[2011/07/17 20:34:18, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.1.81. Error = Connection reset by peer
Re: how to change smb.conf
Posted: Mon Jul 18, 2011 6:57 am
by julsing
Thank you.
Unfortunately I'm not a Unix expert and I don't know where to find and how to add these lines to smb.conf.
I have downloaded putty.exe, but I'm not getting any further than ls -al.
Any help is appreciated.
Thanks.
Frank
Re: how to change smb.conf
Posted: Mon Jul 18, 2011 7:18 am
by julsing
After some exploring I managed to add the lines to smb.conf, using vi.
Now let's hope for the best!
The errors also have disappeared: this meteohub is a regular miracle!
Thanks anyway.
Frank
Re: how to change smb.conf
Posted: Mon Jul 18, 2011 8:43 am
by wfpost
with debian you can use nano instead - a far more handy editor
only type
nano name of textfile