password problems (shadow?): 2.05a/slackware4.0 (fwd)

Mathias Koerber mathias at koerber.org
Sun Sep 19 02:15:48 GMT 1999


Hi all Samba Gurus,

I have problems getting my Win98 box to talk to my Samba Server.

I got Samba 2.05a, and ran configure and installed it.

Please see the attached smb.conf file for details.

Here are my problems:

1. It seems samba does not like
	hosts deny = ALL
	hosts allow = <list of hosts>

   I need to do
	hosts deny = ALL EXCEPT <list of hosts>
	hosts allow = <list of hosts>

 	to make it work (at least SWAT) ??

2. I cannot get my Win98 box to talk to the samba server.
   I can see the Samba2.0.5a server fine in the network neighborhood.
   When I double-click it, it wants to access \\MATJES\IPC$
   and asks for a password. But the password is always incorrect.

   A few additional facts:
	username on the Windows box:	mathias
	username on UNIX:		mathias
	password:			mixed case (I tried password level 5!)

   I noticed that smbd only access /etc/shadow once. before it even gets the
   username. Later it only access /etc/passwd (see attached strace output of
   smbd and the smb.log)

3. Even running smbclient -L matjes (as explained in the DIAGNOSIS.txt file
   makes it ask for a password. The only thing that works though is giving
   an EMPTY password. Entering my real password (either root or mathias)
   results in an error (Bad password)

I am at my wits' end. Any help is greatly appreciated !

Thanks


Mathias Koerber   | Tel: +65 / 471 9820    |   mathias at staff.singnet.com.sg
SingNet NOC       | Fax: +65 / 475 3273    |            mathias at koerber.org
Q'town Tel. Exch. | PGP: Keyid: 768/25E082BD, finger mathias at singnet.com.sg
2 Stirling Rd     |      1A 8B FC D4 93 F1 9A FC BD 98 A3 1A 0E 73 01 65
S'pore 148943     | Disclaimer: I speak only for myself
* Eifersucht ist eine Leidenschaft, die mit Eifer sucht, was Leiden schafft *
-------------- next part --------------
# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 1999/09/19 08:58:15

# Global parameters
[global]
	workgroup = KOERBER
	password level = 5
	username level = 5
	log level = 3
	syslog = 2
	hosts allow = 127. 203.127.219.240/255.255.255.240 165.21.88.201 165.21.88.5
	hosts deny = ALL EXCEPT 127. 203.127.219.240/255.255.255.240 165.21.88.201 165.21.88.5

[homes]
	comment = HomeDirectories
	revalidate = Yes
	invalid users = rc5 maps root deamon bin lp sync shutdown halt mail news uucp operator games ftp majordomo pgp admin
	read only = No

[www.koerber.org]
	comment = The Koerber HomePage
	path = /www/www.koerber.org

[www.planetqaquatic.com.sg]
	comment = Cedric's Webserver
	path = /www/www.planetaquatic.com.sg
-------------- next part --------------
[1999/09/19 10:00:31, 1] smbd/server.c:main(628)
  smbd version 2.0.5a started.
  Copyright Andrew Tridgell 1992-1998
  doing parameter syslog = 2
  doing parameter hosts allow = 127. 203.127.219.240/255.255.255.240 165.21.88.201 165.21.88.5
  doing parameter hosts deny = ALL EXCEPT 127. 203.127.219.240/255.255.255.240 165.21.88.201 165.21.88.5
[1999/09/19 10:00:31, 2] param/loadparm.c:do_section(2241)
  Processing section "[homes]"
  doing parameter comment = HomeDirectories
  doing parameter revalidate = Yes
  doing parameter invalid users = rc5 maps root deamon bin lp sync shutdown halt mail news uucp operator games ftp majordomo pgp admin
  doing parameter read only = No
[1999/09/19 10:00:31, 2] param/loadparm.c:do_section(2241)
  Processing section "[www.koerber.org]"
  doing parameter comment = The Koerber HomePage
  doing parameter path = /www/www.koerber.org
[1999/09/19 10:00:31, 2] param/loadparm.c:do_section(2241)
  Processing section "[www.planetqaquatic.com.sg]"
  doing parameter comment = Cedric's Webserver
  doing parameter path = /www/www.planetaquatic.com.sg
[1999/09/19 10:00:31, 3] param/loadparm.c:lp_load(2563)
  pm_process() returned Yes
[1999/09/19 10:00:31, 3] param/loadparm.c:lp_add_ipc(1537)
  adding IPC service
[1999/09/19 10:00:31, 2] lib/interface.c:interpret_interfaces(213)
  Added interface ip=203.127.219.241 bcast=203.127.219.255 nmask=255.255.255.240
[1999/09/19 10:00:31, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1014 are available.
[1999/09/19 10:00:31, 3] smbd/server.c:main(680)
  loaded services
[1999/09/19 10:00:31, 3] smbd/server.c:main(688)
  Becoming a daemon.
[1999/09/19 10:00:31, 3] lib/util_sock.c:open_socket_in(898)
  bind succeeded on port 139
[1999/09/19 10:00:31, 2] smbd/server.c:open_sockets(183)
  waiting for a connection
[1999/09/19 10:00:54, 3] locking/shmem_sysv.c:sysv_shm_open(702)
  Initialised IPC area of size 1048576
[1999/09/19 10:00:54, 2] smbd/server.c:main(716)
  Changed root to /
[1999/09/19 10:00:54, 3] smbd/oplock.c:open_oplock_ipc(85)
  open_oplock_ipc: opening loopback UDP socket.
[1999/09/19 10:00:54, 3] lib/util_sock.c:open_socket_in(898)
  bind succeeded on port 0
[1999/09/19 10:00:54, 3] smbd/oplock.c:open_oplock_ipc(113)
  open_oplock ipc: pid = 5463, global_oplock_port = 1137
[1999/09/19 10:00:54, 3] smbd/process.c:smbd_process(997)
  priming nmbd
[1999/09/19 10:00:54, 3] lib/util_sock.c:send_one_packet(823)
  sending a packet of len 1 to (127.0.0.1) on port 137 of type DGRAM
[1999/09/19 10:00:54, 2] lib/access.c:check_access(258)
  Allowed connection from dean.koerber.org (203.127.219.244)
[1999/09/19 10:00:54, 3] smbd/process.c:process_smb(615)
  Transaction 0 of length 72
[1999/09/19 10:00:54, 2] smbd/reply.c:reply_special(96)
  netbios connect: name1=MATJES           name2=DEAN           
[1999/09/19 10:00:54, 3] smbd/process.c:process_smb(615)
  Transaction 1 of length 158
[1999/09/19 10:00:54, 3] smbd/process.c:switch_message(448)
  switch message SMBnegprot (pid 5463)
[1999/09/19 10:00:54, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[1999/09/19 10:00:54, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [MICROSOFT NETWORKS 3.0]
[1999/09/19 10:00:54, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [DOS LM1.2X002]
[1999/09/19 10:00:54, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [DOS LANMAN2.1]
[1999/09/19 10:00:54, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [Windows for Workgroups 3.1a]
[1999/09/19 10:00:54, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [NT LM 0.12]
[1999/09/19 10:00:54, 3] smbd/negprot.c:reply_negprot(422)
  Selected protocol NT LM 0.12
[1999/09/19 10:00:54, 3] smbd/process.c:process_smb(615)
  Transaction 2 of length 137
[1999/09/19 10:00:54, 3] smbd/process.c:switch_message(448)
  switch message SMBsesssetupX (pid 5463)
[1999/09/19 10:00:54, 3] smbd/reply.c:reply_sesssetup_and_X(721)
  Domain=[KOERBER]  NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[1999/09/19 10:00:54, 3] smbd/reply.c:reply_sesssetup_and_X(725)
  sesssetupX:name=[MATHIAS]
[1999/09/19 10:00:54, 3] smbd/error.c:error_packet(138)
  error packet at line 840 cmd=115 (SMBsesssetupX) eclass=2 ecode=2
[1999/09/19 10:00:54, 3] smbd/error.c:error_packet(143)
  error string = No such file or directory
[1999/09/19 10:00:54, 3] smbd/process.c:process_smb(615)
  Transaction 3 of length 137
[1999/09/19 10:00:54, 3] smbd/process.c:switch_message(448)
  switch message SMBsesssetupX (pid 5463)
[1999/09/19 10:00:54, 3] smbd/reply.c:reply_sesssetup_and_X(721)
  Domain=[KOERBER]  NativeOS=[Windows 4.0] NativeLanMan=[Windows 4.0]
[1999/09/19 10:00:54, 3] smbd/reply.c:reply_sesssetup_and_X(725)
  sesssetupX:name=[MATHIAS]
[1999/09/19 10:00:54, 3] smbd/error.c:error_packet(138)
  error packet at line 840 cmd=115 (SMBsesssetupX) eclass=2 ecode=2
[1999/09/19 10:00:54, 3] smbd/error.c:error_packet(143)
  error string = No such file or directory
[1999/09/19 10:00:55, 3] smbd/process.c:timeout_processing(828)
  end of file from client
[1999/09/19 10:00:55, 2] smbd/server.c:exit_server(406)
  Closing connections
[1999/09/19 10:00:55, 3] smbd/server.c:exit_server(433)
  Server exit (normal exit)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba.strace.gz
Type: application/octet-stream
Size: 2998 bytes
Desc: 
Url : http://lists.samba.org/archive/samba/attachments/19990919/0a16246f/samba.strace.obj


More information about the samba mailing list