[Samba] Printing Question

amit deshmukh adeshmuk at eng.utoledo.edu
Mon May 20 18:55:02 GMT 2002


Can anybody help with this ?

attched is my conf file
------------------------------------------------------------------------------
Amit Deshmukh
Graduate Student (EECS)
University of Toledo.

Contact Address
~~~~~~~~~~~~~~~
2952, Kendale Drive,
Apt #202,
Toledo OH 43606
Ph. 419-471-9789
------------------------------------------------------------------------------

On Fri, 17 May 2002, amit deshmukh wrote:

> 
> I am not using -M option. I am just passing %M with -R for some accounting
> stuff on printing side. I tried removing that also. Still it won't work.
> I am not geting the reason why it doesn't call 'print command' for notmal
> users. I tried using a dummy script. But even the script won't get called.
> I think there is some problem with smb.conf. But I don't know what. I am
> using lanpan style printing as in samba 2.0.*. I am attaching my smb.conf.
> 
> See if u have any clues with that..
> 
> rgds
> Amit
> ------------------------------------------------------------------------------
> Amit Deshmukh
> Graduate Student (EECS)
> University of Toledo.
> 
> Contact Address
> ~~~~~~~~~~~~~~~
> 2952, Kendale Drive,
> Apt #202,
> Toledo OH 43606
> Ph. 419-471-9789
> ------------------------------------------------------------------------------
> 
> On Thu, 16 May 2002, Joel Hammer wrote:
> 
> > Could it be the improper option -M is preventing lpr from running?
> > Joel
> > 
> > On Thu, May 16, 2002 at 02:50:56PM -0400, amit deshmukh wrote:
> > > Can anybody help with this ? 
> > > 
> > > ---------- Forwarded message ----------
> > > Date: Thu, 16 May 2002 11:58:10 -0400 (EDT)
> > > From: amit deshmukh <adeshmuk at eng.utoledo.edu>
> > > To: samba at lists.samba.org
> > > Subject: [Samba] Printing Question
> > > 
> > > Hi,
> > > 
> > > 	I am using Samba with LPRng. I have in my configuration
> > > 
> > > print command = /usr/local/lprng/current/bin/lpr -P%p %s -R%M
> > > 
> > > 	The permissions for lpr are -rwsr-xr-x. 
> > > 
> > > 	I am using samba as PDC. With this setup, when I login as a root
> > > in the domain, I can print properly. When I login as a normal user in the
> > > domain from an NT machine, I do not get any prints. The smbprn print spool
> > > file gets created in /servers/samba/printers folder (which is writable as
> > > required by samba printing docs). 
> > > 	When I looked into the samba log for a normal user, I do not see a
> > > call made to lpr (which I usually see when it is done from a root accnt).
> > > What I can conclude with this is that if there is any problem then it is
> > > to do with 'lpr' permissions. But, as mentioned earlier these permissions
> > > are enough for printing (a normal user can print from a unix machine
> > > directly)..
> > > 
> > > 	Can anybody help me with this ? 
> > > 
> > > thanks in advance
> > > 
> > > rgds
> > > Amit
> > > 
> > > 
> > > ------------------------------------------------------------------------------
> > > Amit Deshmukh
> > > Graduate Student (EECS)
> > > University of Toledo.
> > > 
> > > Contact Address
> > > ~~~~~~~~~~~~~~~
> > > 2952, Kendale Drive,
> > > Apt #202,
> > > Toledo OH 43606
> > > Ph. 419-471-9789
> > > ------------------------------------------------------------------------------
> > > 
> > > 
> > > -- 
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > > 
> > > 
> > > -- 
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > 
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> > 
> 
-------------- next part --------------
[global]
	interfaces	= X.Y.Z.W
	bind interfaces only	= true
	workgroup	= MY_PDC
	server string	= Samba2.2 
	hosts allow	= A.B.C. E.F.G.

	deadtime	= 0			# idle time out
	getwd cache	= yes
	create mode	= 0600
 
    disable spoolss = yes
   
    printing = lprng
	load printers	= yes

	log file	= /usr/local/servers/samba/log/log.%m
	max log size	= 1000

	utmp		= true
	utmp directory	= /var/adm/
	wtmp directory	= /var/adm/

	security	= user
	smb passwd file	= /usr/local/servers/samba/private/passwd
	encrypt passwords	= yes
	username	= 0

	# See speed.txt and the manual pages for details
	socket options	= TCP_NODELAY 

	# Use only if you have an NT server on your network that has been
	# configured at install time to be a primary domain controller.
	; domain controller	= <NT-Domain-Controller-SMBName>

	# Samba to be a domain logon server for Windows95 workstations. 
	domain logons	= yes
	debug level	= 3
	# debug level	= 2

	logon drive	= u:
	logon path	= \\%L\Profiles\default

	dns proxy	= no 
	netbios name = abcde
 	domain admin group =	adeshmuk root

#============================ Share Definitions	==============================
[homes]
	comment		= Home Directories
	browseable	= no
	writable	= yes
	create mode	= 0600
	directory mode	= 0711

[netlogon]
	comment		= Network Logon Service
	path		= /usr/local/servers/samba/netlogon
	guest ok	= no
	writable	= no
	locking		= no
	read only	= yes
	; share modes	= no
	create mode	= 0600

[print$]
   path = /usr/local/servers/samba/printers
   public = no
   read only = yes
   browseable = yes
	printable = yes
	write list = root
	print command = /usr/local/servers/lprng/current/bin/lpr -P%p %s
    lpq command = /usr/local/servers/lprng/current/bin/lpq -L -P%p
    lprm command = /usr/local/servers/lprng/current/bin/lprm -P%p %j
    lppause command = /usr/local/servers/lprng/current/sbin/lpc hold -P%p %j
    lpresume command =   /usr/local/servers/lprng/current/sbin/lpc release -P%p %j
    queuepause command = /usr/local/servers/lprng/current/sbin/lpc -P%p stop
    queuepause command = /usr/local/servers/lprng/current/sbin/lpc -P%p start

[lj13]
   path = /usr/local/servers/samba/printers
   browseable = yes
   printable = yes
   guest ok = no
   create mode = 0700
   hosts allow = A.B.

[lj26]
   path = /usr/local/servers/samba/printers
   browseable = yes
   writable = yes
   printable = yes
   guest ok = yes
   hosts allow = A.B.

[lj10]
   path = /usr/local/servers/samba/printers
   browseable = yes
   printable = yes
   guest ok = yes
   writable = yes
   hosts allow = A.B.

[dj455]
   path = /usr/local/servers/samba/printers
   browseable = yes
   printable = yes
   guest ok = yes
   hosts allow = A.B.

[Profiles]
	path		= /usr/local/servers/samba/profiles
	browseable	= yes
	guest ok	= yes
	writeable	= no



More information about the samba mailing list