suskewiet wrote:
>
> I changed the interface line, it was showing some default uncorrect
> value. It still doesn’t work though. Here are the new errors for
> log.nmbd and samba.log:
>
> -[2008/07/23 19:54:16, 0] nmbd/nmbd.c:main(849)
> nmbd version 3.2.0rc1-22.1-1795-SUSE-SL11.0 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2008
> [2008/07/23 19:54:16, 0] lib/util_sock.c:open_socket_in(1267)
> bind failed on port 137 socket_addr = 192.168.1.4.
> Error = Cannot assign requested address
This has me a bit worried, but see later comments.
> [2008/07/23 19:54:16, 0] nmbd/nmbd_subnetdb.c:make_subnet(99)
> nmbd_subnetdb:make_subnet()
> Failed to open nmb socket on interface 192.168.1.4 for port 137.
> Error was Cannot assign requested address
> [2008/07/23 19:54:16, 0] nmbd/nmbd.c:main(951)
> ERROR: Failed when creating subnet lists. Exiting.
> [2008/07/23 20:30:00, 0] nmbd/nmbd.c:main(849)
> nmbd version 3.2.0rc1-22.1-1795-SUSE-SL11.0 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2008
> [2008/07/23 20:30:11, 0] nmbd/nmbd.c:process(646)
> Got SIGHUP dumping debug info.
> [2008/07/23 20:30:11, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(281)
> dump_workgroups()
> dump workgroup on subnet 192.168.1.4: netmask= 255.255.255.0:
> THUIS(1) current master browser = UNKNOWN
The below suggestions should fix this.
> SUSKEWIET 40819a03 (Samba file and print server)
> [2008/07/23 20:30:11, 0] nmbd/nmbd_workgroupdb.c:dump_workgroups(281)
> dump_workgroups()
> dump workgroup on subnet UNICAST_SUBNET: netmask= 192.168.1.4:
> THUIS(1) current master browser = UNKNOWN
> SUSKEWIET 40819a03 (Samba file and print server)
> [2008/07/23 20:31:59, 0] nmbd/nmbd.c:main(849)
> nmbd version 3.2.0rc1-22.1-1795-SUSE-SL11.0 started.
> Copyright Andrew Tridgell and the Samba Team 1992-2008-
> ------------------------------------------------------
> -[2008/07/23 20:31:59, 0]
> winbindd/winbindd_cache.c:initialize_winbindd_cache(2345)
> initialize_winbindd_cache: clearing cache and re-creating with
> version number 1
> [2008/07/23 20:31:59, 0] passdb/pdb_interface.c:guest_user_info(247)
> guest_user_info: Unable to locate guest account [smbguest]!
> [2008/07/23 20:31:59, 0] smbd/server.c:main(1341)
> ERROR: failed to setup guest info.-
> ------------------------------------------------------
>
> commands:
> ifconfig:
> -eth0 Link encap:Ethernet HWaddr 00:16:17:B8:CB:0A
> inet addr:192.168.1.4 Bcast:192.168.1.255
> Mask:255.255.255.0
> inet6 addr: fe80::216:17ff:feb8:cb0a/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:5750 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4769 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:6032714 (5.7 Mb) TX bytes:736494 (719.2 Kb)
> Memory:fdce0000-fdd00000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:4571 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4571 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:294638 (287.7 Kb) TX bytes:294638 (287.7
> Kb)-
> ------------------------------------------------------
> global part of samba.conf:
> -[global]
> netbios name = Suskewiet
> server string = Samba file and print server
> workgroup = THUIS
> security = user
> hosts allow = 127. 192.168.1.
> interfaces = eth0 lo
> bind interfaces only = yes
> remote announce = 192.168.1.255
> remote browse sync = 192.168.1.255
> printcap name = cups
> load printers = no
> cups options = raw
> printing = cups
> guest account = smbguest
> log file = /var/log/samba/samba.log
> max log size = 1000
> null passwords = yes
> username level = 6
> password level = 6
> unix password sync = yes
> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> domain master = no
> domain logons = no
> logon drive = m:
> logon home = \%L\homes%u
> logon path = \%L\profiles%u
> logon script = %G.bat
> time server = no
> name resolve order = bcast host lmhosts wins
> wins support = yes
> wins proxy = no
> dns proxy = no
> preserve case = yes
> short preserve case = yes
> client use spnego = no
> client signing = no
> client schannel = no
> server signing = no
> server schannel = no
> nt pipe support = yes
> nt status support = yes
> allow trusted domains = no
> obey pam restrictions = yes
> enable spoolss = yes
> client plaintext auth = no
> disable netbios = no
> follow symlinks = no
> update encrypted = yes
> pam password change = no
> passwd chat timeout = 120
> hostname lookups = no
> username map = /etc/samba/smbusers
> smb passwd file = /etc/samba/smbpasswd
> passwd program = /usr/bin/passwd ‘%u’
> passwd chat = Newpassword* %n
ReTypenewpassword %n
> passwdchanged*
> add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody
> -s /bin/false %m$
> machine password timeout = 120
> idmap uid = 16777216-33554431
> idmap gid = 16777216-33554431
> winbind use default domain = yes
> winbind separator = @
> winbind cache time = 360
> winbind trusted domains only = yes
> winbind nested groups = no
> winbind nss info = no
> passdb backend = smbpasswd
> usershare allow guests = No
> usershare max shares = 100-
> ------------------------------------------------------
This is way to complicated for simple file sharing. In another thread,
Swerdna suggested the following(with a few modifications for your system):
[global]
workgroup = THUIS
netbios name = Suskewiet
I do not think you will need the following, but if you see complaints
about interfaces in your logs, uncomment the line
interfaces = eth0 lo
name resolve order = bcast host lmhosts wins
server string = Samba file and print server
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
use client driver = yes
map to guest = Bad User
local master = yes
preferred master = yes
os level = 65
usershare allow guests = Yes
usershare max shares = 100
usershare owner only = False
Until everything is working, I would suggest you use this for your smb.conf.
Rename your current smb.conf, then cut and paste the above into an editor
and save as /etc/samba/smb.conf. Samba should default to the available
interfaces.
> In addition to interface I changed this to:
>
> hosts allow = 127. 192.168.1.
> remote announce = 192.168.1.255
> remote browse sync = 192.168.1.255
I do not believe you would ever have reason to use the last two of these.
>
> I replaced 192.168.0 with 192.168.1 since my (static) ip is 192.168.1.
If the other machines are 192.168.1./24 this is good, if they are on
192.168.0./24 browsing will not work. Everything should be on the same
subdomain.
>
>
> As for the error Unable to locate guest account [smbguest] (see above)
> I don’t know what a samba account is for. I always used samba without
> an account. In fact I don’t need all those fancy security options, just
> want to get it working as fast and simple as possible, no passwords
> etc.
Unless you have added smbguest as a user this can not work. The guest
account will default to nobody, which works just fine.
>
> Oh and smbd is not in /usr/bin/ but in /usr/sbin/. I have added a
> symbolic link just to be sure.
smbd was starting, you could see that from the logs. It just died, I assume
for lack of an interface.
>
>
> Thanks for the help.
>
>
Unless you are connecting to an AD server, or have interdomain trusts, there
is no need for windbind, you can turn that off. Once everything works you
can go back and add any of the parameters you think you might need to your
smb.conf. Do that one at a time until it breaks or works as you expect.
You will probably want to add some shares to this global section, but for
testing purpose use very simple shares.
If you have not already done this, add the samba document packages (use
YAST) then look at:
/usr/share/doc/packages/samba/Samba3-ByExample.pdf
for some simple examples of smb.conf’s.
You should also be able to find the actual book in your local library.
Terpstra, “Samba-3 by Example”,2nd Ed., Prentice Hall, 2006.
P. V.