Hi,
we got a printjob problem with samba V2.2.7 and citrix terminal services
(i.e. metaframe).
Each printjob from the metaframe server spooled on the samba server has got
one of the following ids:
        -rwx------   1 nobody   nogroup    864256 May 21 13:10
CitrixICARemoteJob
        -rwx------   1 nobody   nogroup     77824 May 21 13:10
CitrixICARemoteJob
        -rw-------   1 nobody   nogroup     34234 May 28 08:00
CitrixICA-Remote-Job
        -rw-------   1 nobody   nogroup         0 May 18 10:54
CitrixICARemoteJob
That could cause an undetermined destination printer.
We tried to solve this problem by using the samba preexec-parameter. To
avoid this feature (?) we create for each print job an unique spool
directory (%d = current process id):
   root preexec = mkdir -p /var/spool/samba/%d; chmod 700
/var/spool/samba/%d; chown %u: /var/spool/samba/%d
   root postexec = rm -rf /var/spool/samba/%d
After updating samba V2.0.6 to samba V2.2.7 we encountered the problem that
samba don't execute the pre-/postexec-command within the printers-section.
Everything works fine within other sections.

>From Citrix we only got the advise to switch to windows nt print services
...   :-(
Does anybody know a better idea?

smb.conf:
[global]
...
   load printers = yes
   lpq cache time = 30
   print command = lpr -r -P%p %s
   printcap name = /etc/printcap
   printing = bsd
...
[printers]
   comment = Alle Drucker
   browseable = no
   printable = yes
   public = yes
   path = /var/spool/samba/%d
   create mode = 0700
   lpq command = lpq -P%p
   root preexec = mkdir -p /var/spool/samba/%d; chmod 700
/var/spool/samba/%d; chown %u: /var/spool/samba/%d
   root postexec = rm -rf /var/spool/samba/%d

Everything we tried with a global pre-/postexec or workaround with print
command failed ...   :-(

TIA, Tobias Gerndt

Reply via email to