[Samba] Using print$ / timeouts to port 445...t

Ken Kleiner ken at cs.uml.edu
Wed Jul 30 12:54:02 GMT 2003


> Don't they teach there to give versions, OS, config and other system
> details, when asking for help in a newsgroup?                        ;-)
> 
> Cheers,
> Kurt
> 

Okay - my bad, sorry - here are the configs :

Version - 2.2.8a
OS - RedHat Advanced Server V2.1
Using lprng, stock from RH.  
smb.conf :

[global]
	netbios name = servername
	server string = "SMB SERVER #1"
	workgroup = domain-name
	domain logons = yes
	security = user
	log level = 2
	log file = /var/log/samba.log
	os level = 99
	preferred master = yes
	local master = yes
	domain master = yes
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	encrypt passwords = yes
	name resolve order = lmhosts host bcast 
#	lm announce = yes
	logon path = \\%L\profile\%u
	logon drive = H:
	logon home = \\%L\%u
	printer admin = root
	printing = lprng
#	disable spoolss = yes


# LDAP STUFF

	ldap admin dn = "admin dn"
	ldap server = servername
	ldap ssl = start tls
	ldap port = 389
	ldap suffix = "ldap suffix"
	
# means that we will work as a WINS server
# the 'name resolve order' line indicates how to resolve - put hosts in 
# /etc/samba/lmhosts to find them instead of pointing to uml wins

	wins support = yes

# means we will be a wins client - not needed in our case since we will
# hardcode addresses into lmhosts
#	wins server = yes

# means dns will be used to find hostnames but only works if netbios names
# are same as dns entries

	dns proxy = no

	hosts allow = hostsallowed
	hosts deny = ALL
	hide unreadable = no

	root preexec = "/usr/local/bin/check_for_profile %u"
	
[profile]
  comment = User profiles
  path = /usr/cs/samba/profile
  create mode = 600
  directory mode = 700
  writable = yes
  browsable = yes
  profile acls = yes

[netlogon]
  path = /usr/cs/samba/netlogon
  create mode = 600
  directory mode = 700
  browseable = yes
  writable = yes
  public = no
  locking = no

[homes]
  browseable = no
  read only = no
  create mode = 600
  directory mode = 700

[olsen314]
	printable = yes
	print command = /usr/bin/lpr -r -P%p %s
	printer = olsen314
	printing = lprng
	read only = yes
	guest ok = no
	
[olsen310]
	printable = yes
	print command = /usr/bin/lpr -r -P%p %s
	printer = olsen310
	printing = lprng
	read only = yes
	guest ok = no

[doclaser]
	printable = yes
	print command = /usr/bin/lpr -r -P%p %s
	printer = doclaser
	printing = lprng
	read only = yes
	guest ok = no

[print$]
	path = /usr/cs/samba/printers
	guest ok = yes
	browseable = yes
	read only = yes
	write list = root

> 
> Ken Kleiner ken at cs.uml.edu wrote on Samba-digest:
> 
> > Tue Jul 29 16:52:53 GMT 2003
> > 
> > 
> > Hi...
> >  
> >   I have set up my smb.conf to use the print$ directive, and have shared
> > 3 printers.  I sucesfully added the printer drivers to the host, and can
> > use them.  But - opening up the printer connection from the windows host
> > is slow, and causes the printer 'status' window to say 'initializing'.
> > 
> >   While that happens, my samba.log shows :
> > 
> > 2003/07/29 16:44:40, 2] lib/access.c:check_access(327)
> >   Allowed connection from  (myipaddress)
> > [2003/07/29 16:45:02, 1] lib/util_sock.c:open_socket_out(860)
> >   timeout connecting to (myipaddress):445
> > [2003/07/29 16:45:22, 1] libsmb/cliconnect.c:cli_connect(782)
> >   Error connecting to (myipaddress) (Operation already in progress)
> > [2003/07/29 16:45:22, 0] rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(91)
> >   connect_to_client: unable to connect to SMB server on machine MACHINE-NAME. Error was : SUCCESS - 0.
> > [2003/07/29 16:45:22, 2] lib/access.c:check_access(327)
> >   Allowed connection from  (myipaddress)
> > 
> >   I see that port 445 is MICROSOFT-DS, but am wondering how/why I can change 
> > this?  
> > 
> >   I know I can set disable spoolss = yes in smb.conf, but that obviously
> > breaks the auto driver download.  Breaking the auto driver download doesn't
> > allow a normal domain user to add a printer, as they get ' not sufficient access
> > to local machine to add printer '.
> > 
> >   Thanks for any help you can shed on this...
> > 
> > -- 
> > <><  ><> <><  ><> <><  ><> <><  ><> <><  ><> <><  
> > 
> > Ken Kleiner
> > System Manager
> > Computer Science Department
> 
> Don't they teach there to give versions, OS, config and other system
> details, when asking for help in a newsgroup?                        ;-)
> 
> Cheers,
> Kurt
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
> 
> 
>  E3-I: This message has been scanned for viruses and dangerous content by UML's antivirus scanning services.
> 
> 
> 
> 


-- 
<><  ><> <><  ><> <><  ><> <><  ><> <><  ><> <><  

Ken Kleiner
System Manager
Computer Science Department
Umass Lowell

voice : 978 934 3645
fax : 978 934 3551

cell : 603 930 5582 (emergencies only, please)

ken at cs.uml.edu



More information about the samba mailing list