[Samba] Shares visible depending on used share name's initial letter

Thomas Urban soletan at toxa.de
Thu Sep 18 08:40:47 GMT 2003


Hi,


I'm using latest Samba version 2.2.8a and are preparing a production
server system, which was working fine recently in development stage. My
system is basically a SuSE 8.2 Pro with some of the applications being
installed manually from source.

I'm using CUPS as printer backend and add printers to the system using 

	lpadmin

Afterwards I make a reload (or even a restart) of smbd and nmbd, before
I call 

	cupsaddsmb -U foo <printername>

to install drivers for that new printer. All this seems to work properly
since I get no unusual responses.
But then I try to browse my printer shares from a Win2k client as well
as using 

	smbclient -L 127.0.0.1 

from the server itself and both only show those shares which have a name
starting with a letter out of A to G. Any other share isn't visible.
Since I can log into it using 

	smbclient //127.0.0.1/<printername> -U foo

they are installed apparently!


What's wrong with that. I'm quite familiar with computers and
programming but I can't figure out any reason for that problem without
taking an in-depth look at the samba sources, which are of course quite
huge and complex. Since my tasks are needed to be completed urgently I
don't even have the time to observe the sources and so I beg for your
help.

Does or did anyone encounter same behaviour?


Best Regards,

Thomas Urban


------ full output of testparm -------
Load smb config files from /inpas/etc/smb/smb.conf
Processing section "[printers]"
Processing section "[print$]"
Processing section "[login]"
Loaded services file OK.
Press enter to see a dump of your service definitions
# Global parameters
[global]
	coding system = 
	client code page = 850
	code page directory = /inpas/opt/samba/lib/codepages
	workgroup = HÍR-GMBH
	netbios name = INPAS400
	netbios aliases = 
	netbios scope = 
	server string = INPAS 400
	interfaces = 
	bind interfaces only = No
	security = USER
	encrypt passwords = Yes
	update encrypted = No
	allow trusted domains = Yes
	hosts equiv = 
	min passwd length = 5
	map to guest = Never
	null passwords = Yes
	obey pam restrictions = No
	password server = 
	smb passwd file = /inpas/opt/samba/private/smbpasswd
	root directory = 
	pam password change = No
	passwd program = /usr/bin/passwd
	passwd chat = *new*password* %n\n *new*password* %n\n *changed*
	passwd chat debug = No
	username map = 
	password level = 0
	username level = 0
	unix password sync = No
	restrict anonymous = No
	lanman auth = Yes
	use rhosts = No
	ssl = No
	ssl hosts = 
	ssl hosts resign = 
	ssl CA certDir = 
	ssl CA certFile = 
	ssl server cert = 
	ssl server key = 
	ssl client cert = 
	ssl client key = 
	ssl egd socket = 
	ssl entropy file = 
	ssl entropy bytes = 256
	ssl require clientcert = No
	ssl require servercert = No
	ssl ciphers = 
	ssl version = ssl2or3
	ssl compatibility = No
	admin log = Yes
	log level = 3
	syslog = 1
	syslog only = No
	log file = 
	max log size = 2000
	timestamp logs = Yes
	debug hires timestamp = No
	debug pid = No
	debug uid = No
	protocol = NT1
	large readwrite = Yes
	max protocol = NT1
	min protocol = CORE
	read bmpx = No
	read raw = Yes
	write raw = Yes
	acl compatibility = 
	nt smb support = Yes
	nt pipe support = Yes
	nt status support = Yes
	announce version = 4.9
	announce as = NT
	max mux = 50
	max xmit = 16644
	name resolve order = lmhosts host wins bcast
	max ttl = 259200
	max wins ttl = 518400
	min wins ttl = 21600
	time server = No
	unix extensions = No
	change notify timeout = 60
	deadtime = 0
	getwd cache = Yes
	keepalive = 30
	lpq cache time = 10
	max smbd processes = 0
	max disk size = 0
	max open files = 10000
	name cache timeout = 660
	read size = 16384
	socket options = TCP_NODELAY
	stat cache size = 50
	use mmap = Yes
	total print jobs = 0
	load printers = Yes
	printcap name = cups
	disable spoolss = No
	enumports command = 
	addprinter command = 
	deleteprinter command = 
	show add printer wizard = Yes
	os2 driver map = 
	strip dot = No
	mangling method = hash2
	character set = ISO8859-1
	mangled stack = 50
	stat cache = Yes
	domain admin group = 
	domain guest group = 
	machine password timeout = 604800
	add user script = 
	delete user script = 
	logon script = 
	logon path = \\%N\%U\profile
	logon drive = 
	logon home = \\%N\%U
	domain logons = No
	os level = 1
	lm announce = Auto
	lm interval = 60
	preferred master = Auto
	local master = Yes
	domain master = Auto
	browse list = Yes
	enhanced browsing = Yes
	dns proxy = Yes
	wins proxy = No
	wins server = 
	wins support = Yes
	wins hook = 
	kernel oplocks = Yes
	lock spin count = 3
	lock spin time = 10
	oplock break wait time = 0
	add share command = 
	change share command = 
	delete share command = 
	config file = 
	preload = 
	lock dir = /inpas/opt/samba/var/locks
	pid directory = /var/run
	default service = 
	message command = 
	dfree command = 
	valid chars = 
	remote announce = 
	remote browse sync = 
	socket address = 0.0.0.0
	homedir map = 
	time offset = 0
	NIS homedir = No
	source environment = 
	panic action = 
	hide local users = No
	winbind uid = 
	winbind gid = 
	template homedir = /home/%D/%U
	template shell = /bin/false
	winbind separator = \
	winbind cache time = 15
	winbind enum users = Yes
	winbind enum groups = Yes
	winbind use default domain = No
	comment = 
	path = 
	alternate permissions = No
	username = 
	guest account = nobody
	invalid users = 
	valid users = 
	admin users = 
	read list = 
	write list = 
	printer admin = 
	force user = 
	force group = 
	read only = Yes
	create mask = 0744
	force create mode = 00
	security mask = 0777
	force security mode = 00
	directory mask = 0755
	force directory mode = 00
	directory security mask = 0777
	force directory security mode = 00
	force unknown acl user = 00
	inherit permissions = No
	inherit acls = No
	guest only = No
	guest ok = No
	only user = No
	hosts allow = 
	hosts deny = 
	status = Yes
	nt acl support = Yes
	profile acls = No
	block size = 1024
	max connections = 0
	min print space = 0
	strict allocate = No
	strict sync = No
	sync always = No
	write cache size = 0
	max print jobs = 1000
	printable = No
	postscript = No
	printing = cups
	print command = lpr -r -P%p %s
	lpq command = lpq -P%p
	lprm command = lprm -P%p %j
	lppause command = 
	lpresume command = 
	queuepause command = 
	queueresume command = 
	printer name = 
	use client driver = No
	default devmode = No
	printer driver = 
	printer driver file = /inpas/etc/smb/printers.def
	printer driver location = 
	default case = lower
	case sensitive = No
	preserve case = Yes
	short preserve case = No
	mangle case = No
	mangling char = ~
	hide dot files = Yes
	hide unreadable = No
	delete veto files = No
	veto files = 
	hide files = 
	veto oplock files = 
	map system = No
	map hidden = No
	map archive = Yes
	mangled names = Yes
	mangled map = 
	browseable = Yes
	blocking locks = Yes
	csc policy = manual
	fake oplocks = No
	locking = Yes
	oplocks = Yes
	level2 oplocks = Yes
	oplock contention limit = 2
	posix locking = Yes
	strict locking = No
	share modes = Yes
	copy = 
	include = 
	exec = 
	preexec close = No
	postexec = 
	root preexec = 
	root preexec close = No
	root postexec = 
	available = Yes
	volume = 
	fstype = NTFS
	set directory = No
	wide links = Yes
	follow symlinks = Yes
	dont descend = 
	magic script = 
	magic output = 
	delete readonly = No
	dos filemode = No
	dos filetimes = No
	dos filetime resolution = No
	fake directory create times = No
	vfs object = 
	vfs options = 

[printers]
	comment = Drucker auf INPAS 400
	path = /tmp
	printer admin = root
	guest ok = Yes
	min print space = 102400
	printable = Yes
	browseable = No

[print$]
	comment = Druckertreiber
	path = /inpas/opt/cups/share/cups/drivers
	write list = root

[login]
	comment = Login-Support
	path = /dev/null
	browseable = No
------ full output of testparm -------

------ logfile of smbd for request smbclient -L 127.0.0.1 -------
[2003/09/18 10:21:27, 3] smbd/oplock.c:init_oplocks(1214)
  open_oplock_ipc: opening loopback UDP socket.
[2003/09/18 10:21:27, 3] lib/util_sock.c:open_socket_in(813)
  bind succeeded on port 0
[2003/09/18 10:21:27, 3]
smbd/oplock_linux.c:linux_init_kernel_oplocks(298)
  Linux kernel oplocks enabled
[2003/09/18 10:21:27, 3] smbd/oplock.c:init_oplocks(1245)
  open_oplock ipc: pid = 3176, global_oplock_port = 32769
[2003/09/18 10:21:27, 3] smbd/process.c:process_smb(846)
  Transaction 0 of length 72
[2003/09/18 10:21:27, 2] smbd/reply.c:reply_special(92)
  netbios connect: name1=127.0.0.1        name2=INPAS400       
[2003/09/18 10:21:27, 2] smbd/reply.c:reply_special(111)
  netbios connect: local=127.0.0.1 remote=inpas400
[2003/09/18 10:21:27, 3] smbd/process.c:process_smb(846)
  Transaction 1 of length 168
[2003/09/18 10:21:27, 3] smbd/process.c:switch_message(685)
  switch message SMBnegprot (pid 3176)
[2003/09/18 10:21:27, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:27, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2003/09/18 10:21:27, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [MICROSOFT NETWORKS 1.03]
[2003/09/18 10:21:27, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [MICROSOFT NETWORKS 3.0]
[2003/09/18 10:21:27, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [LANMAN1.0]
[2003/09/18 10:21:27, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [LM1.2X002]
[2003/09/18 10:21:27, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [Samba]
[2003/09/18 10:21:27, 3] smbd/negprot.c:reply_negprot(426)
  Selected protocol NT LANMAN 1.0
[2003/09/18 10:21:28, 3] smbd/process.c:process_smb(846)
  Transaction 2 of length 138
[2003/09/18 10:21:28, 3] smbd/process.c:switch_message(685)
  switch message SMBsesssetupX (pid 3176)
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/reply.c:reply_sesssetup_and_X(880)
  Domain=[HÖR-GMBH]  NativeOS=[Unix] NativeLanMan=[Samba]
[2003/09/18 10:21:28, 3] smbd/reply.c:reply_sesssetup_and_X(890)
  sesssetupX:name=[ROOT]
[2003/09/18 10:21:28, 2] smbd/password.c:pass_check_smb(575)
  pass_check_smb failed - invalid password for user [root]
[2003/09/18 10:21:28, 2] smbd/reply.c:reply_sesssetup_and_X(997)
  NT Password did not match for user 'root'!
[2003/09/18 10:21:28, 2] smbd/reply.c:reply_sesssetup_and_X(1007)
  Defaulting to Lanman password for root
[2003/09/18 10:21:28, 2] smbd/password.c:pass_check_smb(575)
  pass_check_smb failed - invalid password for user [root]
[2003/09/18 10:21:28, 1] smbd/reply.c:reply_sesssetup_and_X(1023)
  Rejecting user 'root': authentication failed
[2003/09/18 10:21:28, 3] smbd/error.c:error_packet(94)
  error string = No such file or directory
[2003/09/18 10:21:28, 3] smbd/error.c:error_packet(113)
  error packet at smbd/reply.c(1025) cmd=115 (SMBsesssetupX)
NT_STATUS_LOGON_FAILURE
[2003/09/18 10:21:28, 3] smbd/process.c:process_smb(846)
  Transaction 3 of length 78
[2003/09/18 10:21:28, 3] smbd/process.c:switch_message(685)
  switch message SMBsesssetupX (pid 3176)
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/reply.c:reply_sesssetup_and_X(880)
  Domain=[]  NativeOS=[Unix] NativeLanMan=[Samba]
[2003/09/18 10:21:28, 3] smbd/reply.c:reply_sesssetup_and_X(890)
  sesssetupX:name=[]
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:push_sec_ctx(297)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2003/09/18 10:21:28, 3] smbd/uid.c:push_conn_ctx(286)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:get_current_groups(172)
  get_current_groups: user is in 2 groups: 65533, 65534
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:pop_sec_ctx(436)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:get_current_groups(172)
  get_current_groups: user is in 2 groups: 65533, 65534
[2003/09/18 10:21:28, 3] smbd/password.c:register_vuid(336)
  uid 65534 registered to name nobody
[2003/09/18 10:21:28, 3] smbd/password.c:register_vuid(338)
  Clearing default real name
[2003/09/18 10:21:28, 3] smbd/password.c:register_vuid(340)
  User name: nobody	Real name: nobody
[2003/09/18 10:21:28, 3] smbd/process.c:process_smb(846)
  Transaction 4 of length 71
[2003/09/18 10:21:28, 3] smbd/process.c:switch_message(685)
  switch message SMBtconX (pid 3176)
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'nobody' in passdb.
[2003/09/18 10:21:28, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'nobody' in passdb.
[2003/09/18 10:21:28, 2] smbd/password.c:pass_check_smb(575)
  pass_check_smb failed - invalid password for user [root]
[2003/09/18 10:21:28, 1] smbd/password.c:pass_check_smb(545)
  Couldn't find user 'nobody' in passdb.
[2003/09/18 10:21:28, 3] smbd/password.c:authorise_login(855)
  authorise_login: ACCEPTED: guest account and guest ok (nobody)
[2003/09/18 10:21:28, 3] smbd/service.c:make_connection(487)
  Connect path is /tmp
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:push_sec_ctx(297)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2003/09/18 10:21:28, 3] smbd/uid.c:push_conn_ctx(286)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:get_current_groups(172)
  get_current_groups: user is in 2 groups: 65533, 65534
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:pop_sec_ctx(436)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:get_current_groups(172)
  get_current_groups: user is in 2 groups: 65533, 65534
[2003/09/18 10:21:28, 3] smbd/uid.c:fetch_sid_from_uid_cache(591)
  fetch sid from uid cache 65534 ->
S-1-5-21-2433522730-1662536833-1515410999-132068
[2003/09/18 10:21:28, 3] smbd/uid.c:fetch_sid_from_gid_cache(667)
  fetch sid from gid cache 65533 ->
S-1-5-21-2433522730-1662536833-1515410999-132067
[2003/09/18 10:21:28, 3] smbd/uid.c:fetch_sid_from_gid_cache(667)
  fetch sid from gid cache 65534 ->
S-1-5-21-2433522730-1662536833-1515410999-132069
[2003/09/18 10:21:28, 3] lib/util_seaccess.c:se_access_check(269)
  se_access_check: user sid is
S-1-5-21-2433522730-1662536833-1515410999-132068
[2003/09/18 10:21:28, 3] lib/util_seaccess.c:se_access_check(273)
  se_access_check: also S-1-5-21-2433522730-1662536833-1515410999-132067
[2003/09/18 10:21:28, 3] lib/util_seaccess.c:se_access_check(273)
  se_access_check: also S-1-5-21-2433522730-1662536833-1515410999-132069
[2003/09/18 10:21:28, 3] lib/util_seaccess.c:se_access_check(273)
  se_access_check: also S-1-1-0
[2003/09/18 10:21:28, 3] lib/util_seaccess.c:se_access_check(273)
  se_access_check: also S-1-5-2
[2003/09/18 10:21:28, 3] lib/util_seaccess.c:se_access_check(273)
  se_access_check: also S-1-5-32-546
[2003/09/18 10:21:28, 3] smbd/vfs.c:vfs_init_default(123)
  Initialising default vfs hooks
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (65534, 65533) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(334)
  2 user groups: 
  65533 65534 
[2003/09/18 10:21:28, 3] smbd/vfs.c:vfs_ChDir(574)
  vfs_ChDir to /tmp
[2003/09/18 10:21:28, 3] smbd/service.c:make_connection(636)
  inpas400 (127.0.0.1) connect to service IPC$ as user nobody
(uid=65534, gid=65533) (pid 3176)
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/reply.c:reply_tcon_and_X(395)
  tconX service=ipc$ user=nobody
[2003/09/18 10:21:28, 3] smbd/process.c:process_smb(846)
  Transaction 5 of length 99
[2003/09/18 10:21:28, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 3176)
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (65534, 65533) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(334)
  2 user groups: 
  65533 65534 
[2003/09/18 10:21:28, 3] smbd/ipc.c:reply_trans(520)
  trans <\PIPE\LANMAN> data=0 params=19 setup=0
[2003/09/18 10:21:28, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <LANMAN> name
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_reply(3346)
  Got API command 0 of form <WrLeh> <B13BWz>
(tdscnt=0,tpscnt=19,mdrcnt=65504,mprcnt=1024)
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_reply(3350)
  Doing RNetShareEnum
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_RNetShareEnum(1667)
  RNetShareEnum gave 4 entries of 4 (1 65504 172 65504)
[2003/09/18 10:21:28, 3] smbd/process.c:process_smb(846)
  Transaction 6 of length 115
[2003/09/18 10:21:28, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 3176)
[2003/09/18 10:21:28, 3] smbd/ipc.c:reply_trans(520)
  trans <\PIPE\LANMAN> data=0 params=35 setup=0
[2003/09/18 10:21:28, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <LANMAN> name
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_reply(3346)
  Got API command 104 of form <WrLehDz> <B16BBDz>
(tdscnt=0,tpscnt=35,mdrcnt=65535,mprcnt=8)
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_reply(3350)
  Doing NetServerEnum
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_RNetServerEnum(1418)
  NetServerEnum domain = H™R-GMBH uLevel=1 counted=0 total=0
[2003/09/18 10:21:28, 3] smbd/process.c:process_smb(846)
  Transaction 7 of length 115
[2003/09/18 10:21:28, 3] smbd/process.c:switch_message(685)
  switch message SMBtrans (pid 3176)
[2003/09/18 10:21:28, 3] smbd/ipc.c:reply_trans(520)
  trans <\PIPE\LANMAN> data=0 params=35 setup=0
[2003/09/18 10:21:28, 3] smbd/ipc.c:named_pipe(334)
  named pipe command on <LANMAN> name
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_reply(3346)
  Got API command 104 of form <WrLehDz> <B16BBDz>
(tdscnt=0,tpscnt=35,mdrcnt=65535,mprcnt=8)
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_reply(3350)
  Doing NetServerEnum
[2003/09/18 10:21:28, 3] smbd/lanman.c:api_RNetServerEnum(1418)
  NetServerEnum domain = H™R-GMBH uLevel=1 counted=1 total=1
[2003/09/18 10:21:28, 3] smbd/process.c:timeout_processing(1066)
  end of file from client
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 2] smbd/server.c:exit_server(511)
  Closing connections
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/service.c:close_cnum(677)
  inpas400 (127.0.0.1) closed connection to service IPC$
[2003/09/18 10:21:28, 3] smbd/connection.c:yield_connection(48)
  Yielding connection to IPC$
[2003/09/18 10:21:28, 3] smbd/sec_ctx.c:set_sec_ctx(329)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/09/18 10:21:28, 3] smbd/vfs.c:vfs_ChDir(574)
  vfs_ChDir to /
[2003/09/18 10:21:28, 3] smbd/connection.c:yield_connection(48)
  Yielding connection to 
[2003/09/18 10:21:28, 3] smbd/server.c:exit_server(545)
  Server exit (normal exit)
------ logfile of smbd for request smbclient -L 127.0.0.1 -------

nmbd didn't log anything at runtime of upper command requested


---

Walter-Friedländer-Straße 2
D-10249 Berlin

 Telefon: +49 (030) 4280 8731
     Fax: +49 (030) 4679 3243

Internet: http://www.toxa.de


More information about the samba mailing list