lpr command as user, lprm command as nobody

Bevan Broun bevanb at ee.uwa.edu.au
Wed Aug 16 05:03:04 GMT 2000

Im using samba 2.07 from source on a digital unix 4.0e machine.

Users are connecting to their unix home directories fine. There are
also samba print shares. Im using cups-1.0.5 for the print server but
this problem looks like it's part of samba. The authenication is done
from a NT server. Ie the global section of smb.conf

   workgroup = ee-student
   debuglevel = 3
   server string = fs1 - student file server
   log file = /usr/local/daemon/samba/var/log.%m
   max log size = 1000
   browseable = yes
   wins server = nts1
   security = server
   password server = nts1
   socket options = TCP_NODELAY 
   local master = yes
   username map = /usr/local/daemon/samba/lib/users.map
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
  preserve case = yes
  short preserve case = yes
# Default case is normally upper case for all DOS files
  default case = upper
# Be very careful with case sensitivity - it can break things!
;  case sensitive = no
#  printing
   load printers = yes
   printcap name = /etc/printcap
#   printing = cups
    printing = lprng
   print command = /usr/local/admin/printing/bin/sambaprintcommand.sh %p %s %f
   lpq command = /usr/local/bin/lpq -P %p | /usr/local/daemon/samba/bin/cups2lprng-lpqfilter.pl
#    lprm command = /usr/local/bin/lprm -P %p %j
   lprm command = /usr/local/admin/printing/bin/sambalprmcommand.sh %p %j

NOTE: I tried printing = cups, the printing = lprng and lpq command I
have at least work.

Now the "print command" is exececuted on the samba server as the user
connecting to the print share but the "lprm  command" is executing
nobody (and therefore failing).

I cant understand the problem. The NT server is 4.0 sp6, the clients
are all NT workstation 4.0 sp6. It looks like the problem is in samba
or NT.


Bevan Broun                                           ph (08) 9380 1587
Computer Systems Officer                             fax (08) 9380 1065
Dept. Electrical and Electronic Engineering      
University of Western Australia                                 rm. G70

More information about the samba mailing list